Module runtime

Module runtime 

Source

Macros§

select
Wait on multiple concurrent branches, returning when the first branch completes, cancelling the remaining branches.

Functions§

sleep
Waits until duration has elapsed.
spawn
Spawn a future in an asynchronous runtime
spawn_blocking
spawn_blocking is used for executing a task(without async) with heavy computation or blocking io.
timeout
Require a Future to complete before the specified duration has elapsed.