WaitOutcome<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: until fired first, so the panel may still be on screen.
  • notOpened: this call did not open anything. openResult says why.
  • timedOut: timeoutMs elapsed first.

events always holds everything collected, the event that stopped the wait included.

Type Parameters