zng::task

Function poll_respond

source
pub fn poll_respond<R, F>(
    task: impl IntoFuture<IntoFuture = F>,
) -> ReadOnlyVar<Response<R>, ArcVar<Response<R>>>
where R: VarValue, F: Future<Output = R> + Send + 'static,
Expand description

Polls the task once immediately on the calling thread, if the task is ready returns the response already set, if the task is pending continues execution like respond.