OptionaldelayInterval in seconds between two consecutive polls.
OptionalinitialNumber of seconds to wait before the first poll.
OptionalinitialOptions passed to the initial setTimeout().
OptionalmaxMaximum number of polling attempts (including the first one).
OptionalrecurringOptions 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
initialTimerOptionsandrecurringTimerOptionsobjects let you pass anAbortSignalor make the timerunref-ed to thesetTimeout().Example