/// Executes a future on the current thread.
///
/// The provided future must complete or be canceled before `run` will return.
///
/// # Panics
///
/// This function can only be invoked from the context of a `run` call; any
/// other use will result in a panic.
Executes a future on the current thread.
The provided future must complete or be canceled before `run` will return.
Executes a future on the current thread . The provided future must complete or be canceled before ` run ` will return .
pub fn spawn<F>(future: F)
where F: Future<Item = (), Error = ()> + 'static
{
    execute(future).unwrap_or_else(|_| {
        panic!("cannot call `execute` unless the thread is already \
                in the context of a call to `run`")
    })
}
pub fn spawn < F > ( future : F ) where F : Future < Item = ( ) , Error = ( ) > + ' static { execute ( future ) . unwrap_or_else ( | _ | { panic ! ( " \
 " ) } ) }
Executes a future on the current thread.
Executes a future on the current thread .
future
F
panics
This function can only be invoked from the context of a `run` call; any
other use will result in a panic.
This function can only be invoked from the context of a ` run ` call ; any other use will result in a panic .