Skip to main content

Module async_runtime

Module async_runtime 

Source
Expand description

Async runtime utilities

Windjammer’s std::async module maps to these functions.

Functions§

block_on
Block on an async function (creates a runtime)
sleep
Sleep for a duration (seconds)
sleep_ms
Sleep for a duration (milliseconds)
sleep_ms_blocking
Blocking sleep (milliseconds) — for tests and sync callers.
spawn
Spawn an async task