Re-exports§
pub use promise::Promise;
Modules§
Structs§
- Join
Handle - 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.