From Cppreference
|
template< class Rep, class Period >
std::future_status wait_for( const std::chrono::duration<Rep,Period>& timeout_duration );
|
|
|
|
|
Waits for the result to become available. Blocks until specified timeout_duration has elapsed or the result becomes available, whichever comes first. Returns value identifies the state of the result. May block for longer than timeout_duration.
[edit] Parameters
timeout_duration
|
-
|
maximum duration to block for
|
[edit] Return value
[edit] Exceptions
(none)
[edit] Example
[edit] See also
|
|
waits for the result to become available (public member function)
|
|
|
waits for the result, returns if it is not available until specified time point has been reached (public member function)
|