[][src]Function desync::scheduler::future_desync

pub fn future_desync<TFn, TFuture>(
    queue: &Arc<JobQueue>,
    job: TFn
) -> SchedulerFuture<TFuture::Output>

Notable traits for SchedulerFuture<T>

impl<T: Send> Future for SchedulerFuture<T> type Output = Result<T, Canceled>;
where
    TFn: 'static + Send + FnOnce() -> TFuture,
    TFuture: 'static + Send + Future,
    TFuture::Output: Send

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

The future will run to completion even if the return value is discarded, and may run in the context of a desync execution pool (ie, will run even if the current thread is blocked)