lib/Lime/Helper/Utils.php
public function retry($times, callable $fn) {

		retrybeginning:
	    try {
	        return $fn();
	    } catch (\Exception $e) {
	        if (!$times) {
	            throw new \Exception('', 0, $e);
	        }
	        $times--;
	        goto retrybeginning;
	    }
	}
public function retry($times, callable $fn) {

		retrybeginning:
	    try {
	        return $fn();
	    } catch (\Exception $e) {
	        if (!$times) {
	            throw new \Exception('', 0, $e);
	        }
	        $times--;
	        goto retrybeginning;
	    }
	}
public function retry ( $ times , callable $ fn ) { retrybeginning : try { return $ fn ( ) ; } catch ( \ Exception $ e ) { if ( ! $ times ) { throw new \ Exception ( '' , 0 , $ e ) ; } $ times -- ; goto retrybeginning ; } }
Execute callable with retry if it fails
@param  int $times
@param  callable $fn
@return null
Execute callable with retry if it fails