zephyr::kio

Function spawn

Source
pub fn spawn<F>(
    future: F,
    worker: &WorkQueue,
    name: &'static CStr,
) -> JoinHandle<F>
where F: Future + Send + 'static, F::Output: Send + 'static,
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.