Export (0) Print
Expand All

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;

_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.

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.

Header: amprt.h

Namespace: concurrency

Show:
© 2014 Microsoft