std::shared_future::wait_until
From cppreference.com
< cpp | thread | shared future
template< class Clock, class Duration > std::future_status wait_until( const std::chrono::time_point<Clock,Duration>& timeout_time ); |
||
Waits for the result to become available. Blocks until specified timeout_time has been reached or the result becomes available, whichever comes first. Returns value identifies the state of the result. May block for longer than until timeout_time has been reached.
Contents |
[edit] Parameters
timeout_time | - | maximum time point to block until |
[edit] Return value
Constant | Explanation |
---|---|
future_status::deferred | The function to calculate the result has not been started yet |
future_status::ready | The result is ready |
future_status::timeout | The timeout has expired |
[edit] Exceptions
(none)
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
waits for the result to become available (public member function) | |
waits for the result, returns if it is not available for the specified timeout duration (public member function) |