Function zng_task::poll_respond

source ·
pub fn poll_respond<R, F>(task: F) -> ResponseVar<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.