completion_future::wait_until Method

Blocks until the associated asynchronous operation completes or until the current time exceeds the value specified by _Abs_time.

template <
   class _Clock,
   class _Duration
>
std::future_status::future_status wait_until(
   const std::chrono::time_point<_Clock, _Duration>& _Abs_time
) const;

Parameters

  • _Clock
    The clock on which this time point is measured.

  • _Duration
    The time interval since the start of _Clock’s epoch, after which the function will time out.

  • _Abs_time
    The point in time after which the function will time out.

Return Value

Returns:

  1. std::future_status::deferred if the associated asynchronous operation is not running.

  2. std::future_status::ready if the associated asynchronous operation is finished.

  3. std::future_status::timeout if the time period specified has elapsed.

Requirements

Header: amprt.h

Namespace: concurrency

See Also

Reference

completion_future Class