tryUntil()

Keeps trying to execute a function until it has success or until the timeout is reached.

This function is valid in v2.0.0 to v2.12.0. This function has been downloaded 14 times.

Parameters

{Function} fn
Function to keep trying to run.
{number=} opt_timeout Optional, Default:Infinity
Amount of milliseconds to wait before giving up on running fn.
{number=} opt_interval Optional, Default:100
Amount of milliseconds to wait between each try.

Returns

{boolean}
true is returned if no error is thrown the first time fn is called. Otherwise false is returned.