Function spawn_io

Source
pub async fn spawn_io<Fut>(fut: Fut) -> Fut::Output
where Fut: Future + Send + 'static, Fut::Output: Send,
Expand description

Runs fut on the runtime registered by register_io_runtime if any, otherwise awaits on the current thread

ยงPanic

Needs a IO runtime registered.