pub fn spawn_local<F>(future: F)
where
    F: Future<Item = (), Error = ()> + 'static,
{
    future_to_promise(
        future
            .map(|()| JsValue::undefined())
            .or_else(|()| future::ok::<JsValue, JsValue>(JsValue::undefined())),
    );
}
/// Converts a Rust `Future` on a local task queue.
///
/// The `future` provided must adhere to `'static` because it'll be scheduled
/// to run in the background and cannot contain any stack references.
///
/// # Panics
///
/// This function has the same panic behavior as `future_to_promise`.
Converts a Rust `Future` on a local task queue.
The `future` provided must adhere to `'static` because it'll be scheduled
to run in the background and cannot contain any stack references.
Converts a Rust ` Future ` on a local task queue . The ` future ` provided must adhere to ` ' static ` because it ' ll be scheduled to run in the background and cannot contain any stack references .
pub fn spawn_local<F>(future: F)
where
    F: Future<Item = (), Error = ()> + 'static,
{
    future_to_promise(
        future
            .map(|()| JsValue::undefined())
            .or_else(|()| future::ok::<JsValue, JsValue>(JsValue::undefined())),
    );
}
pub fn spawn_local < F > ( future : F ) where F : Future < Item = ( ) , Error = ( ) > + ' static , { future_to_promise ( future . map ( | ( ) | JsValue :: undefined ( ) ) . or_else ( | ( ) | future :: ok :: < JsValue , JsValue > ( JsValue :: undefined ( ) ) ) , ) ; }
Converts a Rust `Future` on a local task queue.
Converts a Rust ` Future ` on a local task queue .
future
F
future
F
panics
This function has the same panic behavior as `future_to_promise`.
This function has the same panic behavior as ` future_to_promise ` .