3 stable releases
Uses new Rust 2024
| 1.1.1 | Jan 30, 2026 |
|---|---|
| 1.0.0 | Sep 23, 2025 |
#2178 in Asynchronous
22KB
274 lines
This crate is a modern alternative to web-bindgen-futures built around async-task.
Pros & Cons
Pros:
- Provides both
spawn(forSendfutures) andspawn_local(for!Sendfutures). spawnandspawn_localreturnTask<T>futures, which resolve to return values.- It's possible to cancel futures using task handles.
- Non-send futures (which are common on web) can have send task-handles.
Cons:
- Some older browser versions are not supported.
Runtime Support
Enabling the +atomics nightly target feature automatically switches the
crate to a multithreaded runtime, which may have different performance characteristics.
Dependencies
~1–1.8MB
~29K SLoC