xtd 0.2.0
iasync_result.h
Go to the documentation of this file.
1 #pragma once
6 #include "any.h"
7 #include "interface.h"
8 #include "object.h"
9 #include <memory>
10 
12 namespace xtd {
23  public:
25 
34  virtual std::any async_state() const noexcept = 0;
35 
44  virtual xtd::threading::wait_handle& async_wait_handle() noexcept = 0;
45 
51  virtual bool completed_synchronously() const noexcept = 0;
52 
60  virtual bool is_completed() const noexcept = 0;
62  };
63 }
virtual std::any async_state() const noexcept=0
Gets a user-defined object that qualifies or contains information about an asynchronous operation...
Contains xtd::threading::wait_handle exception.
Represents the status of an asynchronous operation.
Definition: iasync_result.h:22
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
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...
Contains xtd::interface interface.
virtual bool is_completed() const noexcept=0
Gets a value that indicates whether the asynchronous operation has completed.
Contains std::any type and std::bad_any_cast exception.
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:54
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
Contains xtd::object class.
Encapsulates operating system specific objects that wait for exclusive access to shared resources...
Definition: wait_handle.h:48