Function desync::scheduler::future_desync
source · pub fn future_desync<TFn, TFuture>(
queue: &Arc<JobQueue>,
job: TFn
) -> SchedulerFuture<TFuture::Output> ⓘwhere
TFn: 'static + Send + FnOnce() -> TFuture,
TFuture: 'static + Send + Future,
TFuture::Output: Send,
Expand description
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)