Similar to waitUntil but will repeatedly perform an action until a condition is met.
let someValue = 0;func.repeatUntil( ()=> {return someValue === 5}, ()=> { somevalue++; }).then(()=> { console.log('some value is 5!!!');}) Copy
let someValue = 0;func.repeatUntil( ()=> {return someValue === 5}, ()=> { somevalue++; }).then(()=> { console.log('some value is 5!!!');})
Similar to waitUntil but will repeatedly perform an action until a condition is met.