Skip to main content

say_waits

Function say_waits 

Source
async fn say_waits(
    from: UnboundedReceiver<RunEvent>,
    to: UnboundedSender<RunEvent>,
    run_id: String,
    block_id: String,
)
Expand description

What a callee’s events say to its caller: when it waits (and for what, with the key that ends a wait on an event) and when the wait is over, put on the calling block, so the caller’s run shows it waits and resumedronewait can be given the key. Nothing else of the callee’s is passed on: its end is ChildEnded, and a RunDone of its own would end the caller’s stream. A callee stopped in the middle of a wait never says it ended, so that is said when its events stop.