Wasm32 target arch does not support time or spawning via tokio
so we shim in alternatives here when building for that architecture
Interval returned by interval and interval_at.
Wasm32 target arch does not support time or spawning via tokio
so we shim in alternatives here when building for that architecture
Creates new Interval that yields with interval of period. The first
tick completes immediately. The default MissedTickBehavior is
Burst, but this can be configured
by calling set_missed_tick_behavior.
Wasm32 target arch does not support time or spawning via tokio
so we shim in alternatives here when building for that architecture
Waits until duration has elapsed.
Wasm32 target arch does not support time or spawning via tokio
so we shim in alternatives here when building for that architecture
Spawns a new asynchronous task, returning a
JoinHandle for it.