[−][src]Function tiny_future::run_async
pub fn run_async<T, F>(job: F) -> Future<T, ()> where
T: 'static + Send,
F: FnOnce(Future<T, ()>) + Send + 'static,
Creates a future for job
and runs job
. The result of job
will be set as result into the
future. The parameter passed to job
is a function that returns if the future is still waiting
so that job
can check for cancellation.