pub fn spawn<F>(
future: F,
worker: &WorkQueue,
name: &'static CStr,
) -> JoinHandle<F>
Expand description
Run an async future on the given worker thread.
Arrange to have the given future run on the given worker thread. The resulting JoinHandle
has
join
and join_async
methods that can be used to wait for the given thread.