Interface: PollOptions
Defined in: async/types.ts:57
Options for polling operations.
Properties
interval?
readonlyoptionalinterval:number
Defined in: async/types.ts:62
Interval between poll attempts in milliseconds.
Default
1000
maxAttempts?
readonlyoptionalmaxAttempts:number
Defined in: async/types.ts:68
Maximum number of poll attempts.
Default
10
onPoll()?
readonlyoptionalonPoll: (attempt) =>void
Defined in: async/types.ts:84
Callback invoked on each poll attempt.
Parameters
attempt
number
Returns
void
shouldContinue()?
readonlyoptionalshouldContinue: (attempt) =>boolean
Defined in: async/types.ts:79
Predicate to determine if polling should stop. Return true to continue polling, false to stop.
Parameters
attempt
number
Returns
boolean
timeout?
readonlyoptionaltimeout:number
Defined in: async/types.ts:73
Timeout in milliseconds for the entire polling operation.