#include <future.hpp>
|
| bool | ready () const noexcept |
| |
| bool | has_exception () const noexcept |
| |
| std::uint32_t | continuation_count () const noexcept |
| |
| FutureSnapshot | snapshot (const bool shared) const |
| |
template<class U = T>
requires (!std::is_void_v<U>) |
| void | set_value (U &&v) |
| |
template<class U = T>
requires std::is_void_v<U> |
| void | set_value () |
| |
| void | set_exception (const std::exception_ptr &ex) |
| |
| void | wait () const |
| |
| template<class Rep , class Period > |
| bool | wait_for (const std::chrono::duration< Rep, Period > &dur) const |
| |
| template<class Clock , class Duration > |
| bool | wait_until (const std::chrono::time_point< Clock, Duration > &tp) const |
| |
template<class U = T>
requires (!std::is_void_v<U>) |
| U | get_value_move () |
| | Block until ready, then either return the value (move/copy depending on T) or rethrow the captured exception.
|
| |
template<class U = T>
requires (!std::is_void_v<U>) |
| const U & | get_value_ref () const |
| |
template<class U = T>
requires std::is_void_v<U> |
| void | get_value_void () const |
| |
| AddResult | add_continuation (Continuation cb) |
| |
| std::exception_ptr | exception () const noexcept |
| |
◆ Continuation
◆ value_type
◆ AddResult
Register a continuation.
If the state is already ready, the continuation is not run inline here — the caller is responsible for scheduling it through the executor.
| Enumerator |
|---|
| Scheduled | |
| AlreadyReady | |
◆ add_continuation()
◆ continuation_count()
◆ exception()
◆ get_value_move()
template<class T >
template<class U = T>
requires (!std::is_void_v<U>)
Block until ready, then either return the value (move/copy depending on T) or rethrow the captured exception.
◆ get_value_ref()
template<class T >
template<class U = T>
requires (!std::is_void_v<U>)
◆ get_value_void()
template<class T >
template<class U = T>
requires std::is_void_v<U>
◆ has_exception()
◆ ready()
◆ set_exception()
◆ set_value() [1/2]
template<class T >
template<class U = T>
requires std::is_void_v<U>
◆ set_value() [2/2]
template<class T >
template<class U = T>
requires (!std::is_void_v<U>)
◆ snapshot()
◆ wait()
◆ wait_for()
template<class T >
template<class Rep , class Period >
◆ wait_until()
template<class T >
template<class Clock , class Duration >
The documentation for this class was generated from the following file: