Expand description
See safina_timer
.
Structs
A future wrapper that returns DeadlineExceeded
at a specified deadline.
A future that completes after the specified time.
Call start_timer_thread
to prevent this error.
Enums
DeadlineError::TimerThreadNotStarted
DeadlineError::DeadlineExceeded
Functions
Returns duration
time from now.
Returns after deadline
.
Starts the worker thread, if it’s not already started.
You must call this before calling sleep_until
or sleep_for
.
Awaits inner
, but returns DeadlineExceeded
after deadline
.
Awaits inner
, but returns DeadlineExceeded
after duration
time from now.