3 unstable releases
| 0.4.0 | Jul 5, 2025 |
|---|---|
| 0.3.1 | Jul 2, 2025 |
| 0.3.0 | May 21, 2024 |
#2129 in Asynchronous
1,268 downloads per month
Used in 6 crates
(via asyncs)
58KB
1.5K
SLoC
Async runtime agnostic facilities
asyncs is a shim like package to ship async runtime agnostic facilities.
Usages
cargo add asyncsfor libraries.cargo add --dev --features test asyncsfor tests.cargo add --features tokio,smol,async-global-executorfor binaries to compat with existing async runtimes. See spawns for more.
Feature test should only be enabled for dev-dependencies.
Provides
asyncs::task::spawnto spawn tasks in runtime agnostic way from spawns.select!to multiplex asynchronous futures simultaneously from async-select.#[asyncs::test]to bootstrap a runtime for testing. This is only available with featuretest.
Does not provide
Executors and #[asyncs::main].