mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-29 13:06:06 +03:00
170f20e1fd
Adds an example future that becomes ready on the next tick of the JavaScript micro task queue. Part of #614
14 lines
391 B
Markdown
14 lines
391 B
Markdown
# `wasm-bindgen-futures`
|
|
|
|
[API Documention][docs]
|
|
|
|
This crate bridges the gap between a Rust `Future` and a JavaScript
|
|
`Promise`. It provides two conversions:
|
|
|
|
1. From a JavaScript `Promise` into a Rust `Future`.
|
|
2. From a Rust `Future` into a JavaScript `Promise`.
|
|
|
|
See the [API documentation][docs] for more info.
|
|
|
|
[docs]: https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen_futures/
|