Module

tryUntil

Try some synchronous execution until it is successful time by time. e.g. Calling React ref instance method.
Parameters:
Name Type Description
eachTry Each try callback. Return a boolean to indicate whether it is successful or not.
tryTime The number of time to try
interval The interval between each try

View Source utils/tryUntil.js, line 7