#include <future.hpp>
|
| | Future ()=default |
| |
| | Future (const Future &)=delete |
| |
| Future & | operator= (const Future &)=delete |
| |
| | Future (Future &&) noexcept=default |
| |
| Future & | operator= (Future &&) noexcept=default |
| |
| | ~Future ()=default |
| |
| bool | valid () const noexcept |
| |
| bool | is_ready () const noexcept |
| |
| 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 () |
| | Block, then consume — second get() throws.
|
| |
template<class U = T>
requires std::is_void_v<U> |
| void | get () |
| |
| SharedFuture< T > | share () |
| | Convert to a multi-shot SharedFuture. Future is invalidated.
|
| |
| template<class Exec , class Fn > |
| auto | then (Exec &exec, Fn &&fn) |
| | Register a continuation; consumes this future.
|
| |
| template<class Exec , class Fn > |
| Future< T > | on_error (Exec &exec, Fn &&fn) |
| | Recover from a captured exception by running fn(exception_ptr).
|
| |
| FutureSnapshot | snapshot () const |
| |
◆ value_type
◆ Future() [1/3]
◆ Future() [2/3]
◆ Future() [3/3]
◆ ~Future()
◆ display_info()
◆ get() [1/2]
template<class T >
template<class U = T>
requires (!std::is_void_v<U>)
Block, then consume — second get() throws.
◆ get() [2/2]
template<class T >
template<class U = T>
requires std::is_void_v<U>
◆ is_ready()
◆ on_error()
template<class T >
template<class Exec , class Fn >
Recover from a captured exception by running fn(exception_ptr).
Returns a new Future<T> that completes with either the original value or the recovered value from fn.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ share()
◆ snapshot()
◆ then()
template<class T >
template<class Exec , class Fn >
◆ valid()
◆ wait()
◆ wait_for()
template<class T >
template<class Rep , class Period >
| bool threadman::Future< T >::wait_for |
( |
const std::chrono::duration< Rep, Period > & |
dur | ) |
const |
|
inline |
◆ wait_until()
template<class T >
template<class Clock , class Duration >
| bool threadman::Future< T >::wait_until |
( |
const std::chrono::time_point< Clock, Duration > & |
tp | ) |
const |
|
inline |
◆ Future
template<class T >
template<class U >
◆ Promise
template<class T >
template<class U >
◆ SharedFuture
template<class T >
template<class U >
The documentation for this class was generated from the following file: