Expand description
§Async runtime agnostic facilities
§For library crates:
- task::spawn to spawn tasks in runtime agnostic way.
- select to multiplex asynchronous futures simultaneously
- Feature
test
to enable#[asyncs::test]
to test in a sample runtime.
§For binary crates:
- Feature
tokio
to toggle support for tokio. - Feature
smol
to toggle support for smol builtin global executor. - Feature
async-global-executor
to toggle support for async-global-executor.
Uses environment variable SPAWNS_GLOBAL_SPAWNER
to switch global executor if there are
multiple ones. See spawns for how to compat with task::spawn.
Modules§
- sync
- Utilities to synchronize among asynchronous tasks
- task
- Spawn, join and cancel tasks in runtime agnostic way
Macros§
- select
- Select multiplex asynchronous futures simultaneously
Functions§
- spawn
- Spawns a new task.
Attribute Macros§
- test
- Converts async function to test against a sample runtime.