Crate spawns_core

Source

Structs§

Builder
Builder to spawn task with more options.
CancelHandle
Handle to cancel associated task.
Id
Unique among running tasks.
JoinError
Error in polling JoinHandle.
JoinHandle
Handle to join or cancel associated task.
Name
Task name.
SpawnScope
Scope where tasks are spawned through given Spawn.
Task
Thin wrapper around task to accommodate possible new members.
TaskHandle
An owned permission to cancel task on Drop besides join and cancel on demand.

Enums§

Compat
Compat encapsulate functions to find async runtimes to spawn task.

Statics§

COMPATS
DistributedSlice to collect Compats.

Traits§

Spawn
Trait to spawn task.

Functions§

enter
Enters a scope where new tasks will be spawned through given Spawn.
id
Gets running task’s id. Panic if no reside in managed async task.
spawn
Spawns a new task.
try_id
Gets running task’s id. None if no reside in managed async task.