|
cxxmcp 1.1.6
C++ MCP SDK
|
Void specialization of AsyncResult. More...
#include <async_result.hpp>
Public Types | |
| using | ResultType = Result< Unit > |
Public Member Functions | |
| AsyncResult (const AsyncResult &)=delete | |
| AsyncResult & | operator= (const AsyncResult &)=delete |
| void | set_value () |
| void | set_error (Error error) |
| void | cancel (std::string reason={}) |
| ResultType | wait () const |
| ResultType | wait_for (std::chrono::milliseconds timeout) const |
| ResultType | wait_until (std::chrono::steady_clock::time_point deadline) const |
| bool | ready () const |
| template<class F > | |
| auto | then (F &&callback) -> std::shared_ptr< AsyncResult< std::invoke_result_t< F, ResultType > > > |
Void specialization of AsyncResult.