[][src]Function desync::scheduler::future

pub fn future<TFn, TFuture>(
    queue: &Arc<JobQueue>,
    job: TFn
) -> impl Future<Output = Result<TFuture::Output, Canceled>> + Send where
    TFn: 'static + Send + FnOnce() -> TFuture,
    TFuture: 'static + Send + Future,
    TFuture::Output: Send

Schedules a job to run and returns a future for retrieving the result