Trait agnostic_lite::time::AsyncLocalSleep
source · pub trait AsyncLocalSleep: Future<Output = Instant> {
// Required method
fn reset(self: Pin<&mut Self>, deadline: Instant);
}Available on crate feature
time only.Expand description
Like AsyncSleep, but does not requires Send.
Required Methods§
Implementors§
impl AsyncLocalSleep for AsyncIoSleep
Available on crate feature
async-io only.impl AsyncLocalSleep for TokioSleep
Available on crate feature
tokio only.impl AsyncLocalSleep for WasmSleep
Available on crate feature
wasm only.