Interface: WaitForOptions

Options for waitFor.

Extends

Properties

interval?

optional interval?: number

Interval between predicate evaluations, in milliseconds.

Default Value

100

signal?

optional signal?: AbortSignal

Cancels the operation. While waiting between attempts or polls the cancellation is observed immediately; an in-flight attempt is not interrupted (abort the underlying work yourself if needed).

Inherited from

AsyncControlOptions.signal


timeout?

optional timeout?: number

Overall time budget in milliseconds. When exceeded a TimeoutError is thrown. Pass Infinity to wait forever.

Default Value

10000