|
Portable concurrency
0.11.0
|
Class to wait on future or shared_future with timeout.
More...
Public Member Functions | |
| timed_waiter () noexcept=default | |
Constructs timed_waiter in some unspecified state. More... | |
| template<typename T > | |
| timed_waiter (future< T > &fut) | |
Constructs timed_waiter associated with fut object. | |
| template<typename T > | |
| timed_waiter (shared_future< T > &fut) | |
Constructs timed_waiter associated with fut object. | |
| template<typename Rep , typename Per > | |
| future_status | wait_for (const std::chrono::duration< Rep, Per > &dur) |
| Waits for the result, returns if it is not available for the specified timeout duration. | |
| template<typename Clock , typename Dur > | |
| future_status | wait_until (const std::chrono::time_point< Clock, Dur > &tp) |
| Waits for the result, returns if it is not available until specified time point has been reached. | |
Class to wait on future or shared_future with timeout.
This class is intended to become complete replacement for wait_for and wait_until member functions of future and shared_future classes. Both of those functions are rarely used but prevent internal implementation optimizations.
|
defaultnoexcept |
Constructs timed_waiter in some unspecified state.
No operations are allowed on the default constructed object except copy/move asignment and destruction.
1.8.17