Module prelude

Source

Structs§

JoinHandle
An owned permission to join on a task (await its termination).

Functions§

sleep
Waits until duration has elapsed.
spawn
Spawns a new asynchronous task, returning a JoinHandle for it.
spawn_blocking
Runs the provided closure on a thread where blocking is acceptable.
spawn_local
Spawns a !Send future on the current LocalSet or LocalRuntime.
timeout_fut
Requires a Future to complete before the specified duration has elapsed.