repeatUntil
repeatUntil<
A>(options): (task) =>Task<A>
Defined in: Core/Task.ts:282
Runs a Task repeatedly until the result satisfies a predicate, returning that result.
An optional delay duration can be inserted between runs.
An optional maxAttempts cap stops the loop after N calls — the last value is returned
regardless of whether the predicate was satisfied.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”options
Section titled “options”delay?
Section titled “delay?”maxAttempts?
Section titled “maxAttempts?”number
(a) => boolean
Returns
Section titled “Returns”(task) => Task<A>