Skip to main content

Module runtime

Module runtime 

Source

Functionsยง

block_on
Runs a future to completion on the thread-local Tokio runtime.
init_runtime
Initializes the thread-local Tokio runtime handle for the current thread.
is_initialized
Returns true when the current thread has an initialized Tokio runtime handle.
spawn
Spawns a task onto the thread-local Tokio runtime.