xtd 0.2.0
Loading...
Searching...
No Matches
iasync_result.h
Go to the documentation of this file.
1
4#pragma once
6#include "any.h"
7#include "interface.h"
8#include "object.h"
9#include <memory>
10
12namespace xtd {
26 public:
28
37 virtual std::any async_state() const noexcept = 0;
38
47 virtual xtd::threading::wait_handle& async_wait_handle() noexcept = 0;
48
54 virtual bool completed_synchronously() const noexcept = 0;
55
63 virtual bool is_completed() const noexcept = 0;
65 };
66}
Contains std::any type and std::bad_any_cast exception.
Represents the status of an asynchronous operation.
Definition iasync_result.h:25
virtual xtd::threading::wait_handle & async_wait_handle() noexcept=0
Gets a xtd::threading::wait_handle that is used to wait for an asynchronous operation to complete.
virtual bool is_completed() const noexcept=0
Gets a value that indicates whether the asynchronous operation has completed.
virtual std::any async_state() const noexcept=0
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
virtual bool completed_synchronously() const noexcept=0
Gets a value that indicates whether the asynchronous operation completed synchronously.
#define interface_
This keyword is use to represent an interface.
Definition interface.h:58
Contains xtd::interface interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::object class.
Contains xtd::threading::wait_handle exception.