mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-30 15:07:11 +03:00
170f20e1fd
Adds an example future that becomes ready on the next tick of the JavaScript micro task queue. Part of #614
391 B
391 B
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.