Skip to main content

ask

Function ask 

Source
pub fn ask(
    approver: &dyn Approver,
    task: &Task,
    context: &PresentContext,
) -> Option<(Decision, Answer)>
Expand description

Asks approver about a waiting task now. None when the person answers “later” (the call keeps waiting), the call waits in its run’s batch (the asking budget is used: nobody is interrupted), or the task is not one of ours. The answer comes with the decision.