asyncs-sync 0.4.0

Asynchronous runtime agnostic synchronization utilities
Documentation
  • Coverage
  • 90.48%
    19 out of 21 items documented0 out of 17 items with examples
  • Size
  • Source code size: 61.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.83 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • kezhuw/asyncs
    6 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kezhuw

Async runtime agnostic facilities

crates.io github-ci docs.rs Apache-2.0

asyncs is a shim like package to ship async runtime agnostic facilities.

Usages

  • cargo add asyncs for libraries.
  • cargo add --dev --features test asyncs for tests.
  • cargo add --features tokio,smol,async-global-executor for binaries to compat with existing async runtimes. See spawns for more.

Feature test should only be enabled for dev-dependencies.

Provides

  • asyncs::task::spawn to 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 feature test.

Does not provide

Executors and #[asyncs::main].