future::wait_until Method

Blocks the current thread until the associated asynchronous state is ready or until after a specified time point.

template<class Clock, class Duration>
   future_status wait_until(
      const chrono::time_point<Clock, Duration>& Abs_time) const;

Parameters

  • Abs_time
    A chrono::time_point object that specifies a time after which the thread can unblock.

Return Value

A future_status that indicates the reason for returning.

Remarks

An associated asynchronous state is ready only if its asynchronous provider has stored a return value or stored an exception.

Requirements

Header: future

Namespace: std

See Also

Reference

future Class

<future>