Function exathread::yieldUntil
Defined in File exathread.hpp
Function Documentation
-
details::YieldOp exathread::yieldUntil(std::chrono::steady_clock::time_point time)
Suspend execution of your task and allow other tasks to run until a certain point in time.
Note
As the use of this function makes your function a coroutine, it must explicitly return either a VoidTask or ValueTask and use
co_return
to be valid- Parameters:
time – The point in time until which to yield. It is not guaranteed that execution will resume exactly at the specified time point
- Throws:
std::logic_error – If the specified time point is in the past
- Returns:
An awaitable object; you must use
co_await
on this result to yield correctly