Function zng::task::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.