Function tk_easyloop::spawn
[−]
[src]
pub fn spawn<F>(f: F) where
F: Future<Item = (), Error = ()> + 'static,
Spawn a future to the current main loop
This only works if running inside the run()
function of the main loop
This is an equivalent of:
handle().spawn(f)
Panics
This function panics if there is no currently running loop (i.e. this
function is not running from the inside of run()
.