Module task

Source

Structs§

JoinHandle
A handle that awaits the result of a task.

Functions§

run
run future and wait forever this is typically used in the server
run_block_on
Spawns a task and blocks the current thread on its result.
spawn
Spawns a task.
spawn_blocking
Spawns a blocking task.
spawn_local
Spawns a task onto the thread-local executor.