Function tokio::executor::current_thread::spawn
[−]
[src]
pub fn spawn<F>(future: F) where
F: Future<Item = (), Error = ()> + 'static, 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.