Crate coroutines

Source

Re-exports§

pub use promise::Promise;

Modules§

promise

Structs§

JoinHandle
A handle used to wait on a coroutine’s termination.

Functions§

fast_spawn
Spawns a coroutine without building a JoinHandle.
global_event_count
Returns the global event count.
migration_count
Returns the current global migration count.
set_work_stealing
Enable / disable coroutine migration (“work stealing”) globally. (disabled by default)
spawn
Spawns a coroutine and returns its JoinHandle.
spawn_inherit
Deprecated.
yield_now
Yields out of the current coroutine and allows the scheduler to execute other coroutines.