[][src]Module gain::task

Types and traits for working with asynchronous tasks.

Functions

block_on

Spawn a task and blocks the program on its result.

spawn

Spawn a new task.

spawn_local

Spawn a new local task.

Type Definitions

JoinHandle

A handle that awaits the result of a task.