mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-22 17:21:35 +00:00
Revert previous change.
This commit is contained in:
@ -388,11 +388,11 @@ fn _future_to_promise(future: Box<Future<Item = JsValue, Error = JsValue>>) -> P
|
|||||||
/// This function has the same panic behavior as `future_to_promise`.
|
/// This function has the same panic behavior as `future_to_promise`.
|
||||||
pub fn spawn_local<F>(future: F)
|
pub fn spawn_local<F>(future: F)
|
||||||
where
|
where
|
||||||
F: Future + 'static,
|
F: Future<Item=(), Error=()> + 'static,
|
||||||
{
|
{
|
||||||
future_to_promise(
|
future_to_promise(
|
||||||
future
|
future
|
||||||
.map(|_| JsValue::undefined())
|
.map(|()| JsValue::undefined())
|
||||||
.map_err(|_| JsValue::undefined()),
|
.map_err(|()| JsValue::undefined()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user