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 {
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}
Contains std::any type and std::bad_any_cast exception.
Represents the status of an asynchronous operation.
Definition iasync_result.h:22
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.