pub fn wait_until_done_noting(
child: &mut Child,
outputs: &[&File],
patience: Patience,
label: &str,
waits: &mut Vec<WaitReport>,
) -> Result<Result<ExitStatus, StopCause>, SingleFlightError>Expand description
What:
The same wait as wait_until_done for a push, handing over the wait of a push that is waiting for its remote with the
connection open.
Why:
The push is not stopped while it waits; the caller says so once, in a line, and the wait ends the way any other does.
In TS you’d write (pseudocode):
await Promise.race([exited, stalled, flood]); // waits.push(report) when the push begins to wait for the server