cp.just.doUntil(actionFn[, timeout[, frequency]]) -> value
action
function, looping until the result of the function evaluates to true
(or a non-nil value).actionFn
- a fuction which is called on each loop. It should return a 'truthy' value.timeout
- (optional) the number of seconds after which we will give up. Defaults to 1 second.frequency
- (optional) the amount of time in seconds between checks. Defaults to 1 millisecond.cp.just.doWhile(actionFn[, timeout[, frequency]]) -> value
true
.actionFn
- a fuction which is called on each loop. It should return a 'truthy' value.timeout
- (optional) the number of seconds after which we will give up. Defaults to 1 second.frequency
- (optional) the time between checks. Defaults to 1 millisecond.cp.just.wait(integer) -> nil