Periodically tests for a condition to be met before executing some code.This function is valid in v2.1.0 to v2.23.0. This function has been downloaded 32 times.
opt_intervaluntil it returns a
true-ish value or the
opt_timeouttime elapses. The arguments passed will be (1) a prevention function that when called will prevent further tests from occurring and (2) the number of times this function was called. Calling the prevention function will only prevent subsequent polls from happening, it will not indicate that the test was a success or failure.
fnTestevaluates to a
true-ish value. The arguments passed will be (1) the return value from the success call to
fnTestand (2) the number of times
fnTestwas a success.