Represents an asynchronous operation.
Classes | |
| struct | awaiter |
| struct | promise_type |
Public Constructors | |
| task (const xtd::func< result_t > &func) | |
| task (const xtd::func< result_t > &func, const xtd::threading::cancellation_token &cancellation_token) | |
| task (const xtd::func< result_t, const xtd::any_object & > &func, const xtd::any_object &state) | |
| task (const xtd::func< result_t, const xtd::any_object & > &func, const xtd::any_object &state, const xtd::threading::cancellation_token &cancellation_token) | |
Public Properties | |
| auto | result () const noexcept -> const result_t & |
Public Operators | |
| auto | operator co_await () noexcept |
Public Static Methods | |
| static auto | from_result (result_t result) -> task |