Skip to main content

Module task

Module task 

Source
Expand description

Abstractions over tasks that can be used natively or on the Web.

Structs§

Task
The type of a future awaiting another task.

Traits§

MaybeSend
Send on native targets; no bound on web (where there’s only one thread).
MaybeSync
Sync on native targets; no bound on web (where there’s only one thread).

Functions§

run_detached
Spawns future on the runtime and awaits its completion.