Optional
maxThe maximum number of consecutive failures to allow before terminating the operation
If set, onFail will be called once after the last failed repetition
Infinity
Optional
maxThe maximum number of repetitions to perform before terminating
If set, onComplete will be called once after the last repetition
Infinity
Optional
onCalled once after maxRuns is reached
Optional
onCalled whenever RepeatTask throws an error
Optional
onCalled once after maxFailures is reached
Optional
onCalled once at the start of the operation
Optional
runRun task immediately after start is called, otherwise wait until the first timeout is reached
true
Optional
startOptional
timeoutThe number of milliseconds to wait between each repetition
Generated using TypeDoc
The options to use when creating a Repeat instance