mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-23 09:41:33 +00:00
Update to work with futures-preview 0.3.0-alpha.18
This commit is contained in:
@ -248,7 +248,7 @@ where
|
||||
drop(lock);
|
||||
|
||||
// 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);
|
||||
Pin::new(future).poll(cx)
|
||||
};
|
||||
|
Reference in New Issue
Block a user