Namespaces
Variants
Views
Actions

std::shared_future::wait_until

From cppreference.com
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

[edit] See also

waits for the result to become available
(public member function) [edit]
waits for the result, returns if it is not
available for the specified timeout duration
(public member function) [edit]