mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-07 11:32:16 +00:00
This is just a naive implementation. It seems it can be improved using a custom task queue, but that can be in a separate PR.
wasm-bindgen-futures
This crate bridges the gap between a Rust Future
and a JavaScript
Promise
. It provides two conversions:
- From a JavaScript
Promise
into a RustFuture
. - From a Rust
Future
into a JavaScriptPromise
.
See the API documentation for more info.