Type alias WaitOutcome<C>
Wait
Outcome
<C>: { $case
: "closed"; events
: readonly Collected<C[number]>[]; } | { $case
: "matched"; events
: readonly Collected<C[number]>[]; } | { $case
: "notOpened"; openResult
: OpenExplorerUiResult; } | { $case
: "timedOut"; events
: readonly Collected<C[number]>[]; }
How the wait ended.
closed: the panel this call opened was closed.matched:untilfired first, so the panel may still be on screen.notOpened: this call did not open anything.openResultsays why.timedOut:timeoutMselapsed first.eventsalways holds everything collected, the event that stopped the wait included.