阻止,直到关联的异步操作完成或当前时间超出由 _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
此时间点已经过测量的时钟。_Duration
_Clock 时代启动以来的时间间隔后,该函数将超时。_Abs_time
函数将要超时的时间点。
返回值
返回:
如果相关异步操作没有运行,则 std::future_status::deferred。
如果相关异步操作已完成,则 std::future_status::ready。
如果已运行指定的时间段,则 std::future_status::timeout。
要求
**标头:**amprt.h
**命名空间:**并发