Method | Description | |
---|---|---|
run ( Callable $callable, integer $timeout ) : mixed | Executes a callable until a timeout is reached or the callable returns true. | |
spin ( Callable $callable, integer $timeout, $delay = 100000 ) : mixed | Executes a callable in a loop until a timeout is reached or the callable returns true. |