class
Illuminate
/
Support
/
Timebox
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Timebox
Properties
public
$earlyReturn bool
Indicates if the timebox is allowed to return early.
Default: false
Methods
public
call ( callable $callback , int $microseconds ) : TCallReturnType
Invoke the given callback within the specified timebox minimum.
Parameters
- $callback callable
- $microseconds int
public
returnEarly ( ) : $this
Indicate that the timebox can return early.
public
dontReturnEarly ( ) : $this
Indicate that the timebox cannot return early.
protected
usleep ( int $microseconds ) : void
Sleep for the specified number of microseconds.
Parameters
- $microseconds int