Optional
delayInterval in seconds between two consecutive polls.
Optional
initialNumber of seconds to wait before the first poll.
Optional
initialOptions passed to the initial setTimeout()
.
Optional
maxMaximum number of polling attempts (including the first one).
Optional
recurringOptions passed to every recurring setTimeout()
.
Parameters for the internal polling loop in enqueueAndGetInference() .
Default behavior:
initialDelaySec
= 2sdelaySec
= 1.5smaxRetries
= 80Validation rules:
initialDelaySec
>= 1delaySec
>= 1maxRetries
>= 2The
initialTimerOptions
andrecurringTimerOptions
objects let you pass anAbortSignal
or make the timerunref
-ed to thesetTimeout()
.Example