Expand description
This module provides a simple wrapper
around the tokio::task module.
Structs§
- Join
Handle - An owned permission to join on a task (await its termination).
Functions§
- spawn
- Spawns a new asynchronous task, returning a
JoinHandlefor it. - spawn_
blocking - Runs the provided closure on a thread where blocking is acceptable.
- spawn_
local - Spawns a
!Sendfuture on the currentLocalSetorLocalRuntime.