Callback function
The time in ms if after which the callback did not return a true-ish value is expired
The interval at which to execute the callback
Optionaloptions: { rejectionMessage?: string; resolveOnTimeout?: boolean }OptionalrejectionMessage?: stringOptional rejection message when the specified time in ms expired without the callback being resolved
OptionalresolveOnTimeout?: booleanPromise
Waits for the callback to return a true-ish value which resolves the promise.