mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 04:23:12 +03:00
Merge pull request #1716 from najamelan/fix/futures-preview-0.3.0-alpha.18
Update to work with futures-preview 0.3.0-alpha.18
This commit is contained in:
commit
3697fb7205
@ -15,8 +15,8 @@ cfg-if = "0.1.9"
|
|||||||
futures = "0.1.20"
|
futures = "0.1.20"
|
||||||
js-sys = { path = "../js-sys", version = '0.3.25' }
|
js-sys = { path = "../js-sys", version = '0.3.25' }
|
||||||
wasm-bindgen = { path = "../..", version = '0.2.48' }
|
wasm-bindgen = { path = "../..", version = '0.2.48' }
|
||||||
futures-util-preview = { version = "0.3.0-alpha.15", optional = true }
|
futures-util-preview = { version = "0.3.0-alpha.18", optional = true }
|
||||||
futures-channel-preview = { version = "0.3.0-alpha.15", optional = true }
|
futures-channel-preview = { version = "0.3.0-alpha.18", optional = true }
|
||||||
lazy_static = { version = "1.3.0", optional = true }
|
lazy_static = { version = "1.3.0", optional = true }
|
||||||
|
|
||||||
[target.'cfg(target_feature = "atomics")'.dependencies.web-sys]
|
[target.'cfg(target_feature = "atomics")'.dependencies.web-sys]
|
||||||
|
@ -248,7 +248,7 @@ where
|
|||||||
drop(lock);
|
drop(lock);
|
||||||
|
|
||||||
// TODO is there some way of saving these so they don't need to be recreated all the time ?
|
// TODO is there some way of saving these so they don't need to be recreated all the time ?
|
||||||
let waker = ArcWake::into_waker(task.clone());
|
let waker = futures_util::task::waker(task.clone());
|
||||||
let cx = &mut Context::from_waker(&waker);
|
let cx = &mut Context::from_waker(&waker);
|
||||||
Pin::new(future).poll(cx)
|
Pin::new(future).poll(cx)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user