xtd 0.2.0
Loading...
Searching...
No Matches
iasync_result.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "any.hpp"
7#include "interface.hpp"
8#include "object.hpp"
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.hpp: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.hpp:58
Contains xtd::interface interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::object class.
Contains xtd::threading::wait_handle exception.