Scheduler
Index
Constructors
Methods
Constructors
constructor
Methods
after
Schedules a callback function to be invoked after a delay
Type parameters
- Result
Parameters
delay: Duration
callback: DelayedCallback<Result>
Returns Promise<Result>
waitFor
Returns a
Promise
to be resolved after adelay
Parameters
delay: Duration
Returns Promise<void>
repeatUntil
Schedules a callback function to be repeated, according to configured limits.
Type parameters
- Result
Parameters
callback: DelayedCallback<Result>
limits: RepeatUntilLimits<Result> = {}
Returns Promise<Result>
stop
Returns void
The maximum amount of time to give to a callback to complete before throwing an error