Optional ReadonlyabortOptional Readonlyfilter(Optional) If provided, will only resolve if the event passes this predicate.
Optional ReadonlytimeoutIf provided, the promise will reject after this duration, in seconds, if not resolved.
Optional ReadonlytimeoutThe error level on a timeout.
Optional ReadonlytimeoutThe timeout message. If not provided will use DEFAULT_TIMEOUT_MESSAGE.
Optional ReadonlytimeoutThe error origin if the next event times out.
Default: ErrorOrigin.INTERNAL
(Optional) If provided, will reject the promise if the signal is aborted.