2018-08-09 03:41:36 +03:00
|
|
|
# `wasm-bindgen-futures`
|
2018-08-01 23:52:24 +03:00
|
|
|
|
2018-08-09 03:41:36 +03:00
|
|
|
[API Documention][docs]
|
2018-08-01 23:52:24 +03:00
|
|
|
|
2018-08-09 03:41:36 +03:00
|
|
|
This crate bridges the gap between a Rust `Future` and a JavaScript
|
|
|
|
`Promise`. It provides two conversions:
|
2018-08-01 23:52:24 +03:00
|
|
|
|
2018-08-09 03:41:36 +03:00
|
|
|
1. From a JavaScript `Promise` into a Rust `Future`.
|
|
|
|
2. From a Rust `Future` into a JavaScript `Promise`.
|
2018-08-01 23:52:24 +03:00
|
|
|
|
2018-08-09 03:41:36 +03:00
|
|
|
See the [API documentation][docs] for more info.
|
|
|
|
|
|
|
|
[docs]: https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen_futures/
|