Function closure_future::spawn_rayon[][src]

pub fn spawn_rayon<Output: Send + Sync + 'static, F: FnOnce() -> Output + UnwindSafe + Send + 'static>(
    f: F
) -> ClosureFuture<Output>
Notable traits for ClosureFuture<Output>
impl<Output> Future for ClosureFuture<Output> type Output = Result<Output, RunError>;
This is supported on crate feature rayon only.
Expand description

An helper function to spawn a closure on the rayon global threadpool. Requires feature “rayon” to be activated.