/// Spawns a blocking task.
///
/// The task will be spawned onto a thread pool specifically dedicated to blocking tasks.
Spawns a blocking task.
The task will be spawned onto a thread pool specifically dedicated to blocking tasks.
Spawns a blocking task . The task will be spawned onto a thread pool specifically dedicated to blocking tasks .
pub fn spawn_blocking<F, R>(future: F, stack: ProcStack) -> RecoverableHandle<R>
where
    F: Future<Output = R> + Send + 'static,
    R: Send + 'static,
{
    let (task, handle) = LightProc::recoverable(future, schedule, stack);
    task.schedule();
    handle
}
pub fn spawn_blocking < F , R > ( future : F , stack : ProcStack ) -> RecoverableHandle < R > where F : Future < Output = R > + Send + ' static , R : Send + ' static , { let ( task , handle ) = LightProc :: recoverable ( future , schedule , stack ) ; task . schedule ( ) ; handle }
Spawns a blocking task.
Spawns a blocking task .
future
F
stack
ProcStack