A function or asynchronous function that evaluates the condition to be met. The function should return the desired value once the condition is met or undefined if the condition is not met yet.
The maximum duration for which the polling should continue before timing out.
Optionalstart: StartMode = 'immediate'Determines whether the polling starts immediately or with a delay. Defaults to 'immediate'.
A promise that resolves with the value returned by the predicate when its condition is met or rejects if an error occurs.
Executes a polling mechanism that repeatedly checks a predicate until it resolves to a defined value or a timeout occurs.