zng::task

Function poll_spawn

source
pub fn poll_spawn<F>(task: impl IntoFuture<IntoFuture = F>)
where F: Future<Output = ()> + Send + 'static,
Expand description

Polls the task once immediately on the calling thread, if the task is pending, continues execution in spawn.