Crate spawns_core

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§

Compatcompat
Item of COMPATS to encapsulate functions to spawn task for async runtime.

Statics§

COMPATScompat
DistributedSlice to collect Compats from distributed_slice.

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.