moved threadsafe futures implementation to a separate file, made updates after review

This commit is contained in:
ibaryshnikov
2019-06-17 20:25:25 +03:00
parent e466e1a6f1
commit 16c6bdc966
7 changed files with 378 additions and 298 deletions

View File

@ -18,7 +18,7 @@ wasm-bindgen = { version = "0.2.48", features = ['serde-serialize'] }
wasm-bindgen-futures = "0.3.25"
[dependencies.web-sys]
version = "0.3.4"
version = "0.3.23"
features = [
'CanvasRenderingContext2d',
'ErrorEvent',

View File

@ -92,7 +92,7 @@ impl Scene {
.map(move |_data| image_data(base, len, width, height).into());
Ok(RenderingScene {
promise: wasm_bindgen_futures::future_to_promise(done),
promise: wasm_bindgen_futures::atomics::future_to_promise(done),
base,
len,
height,