class Illuminate / Support / Timebox
You are viewing an older version of the documentation. For the latest, please visit master documentation.

Timebox

Properties

public

$earlyReturn bool

Indicates if the timebox is allowed to return early.

Default: false

Methods

public

call ( callable $callback , int $microseconds ) : mixed

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 ( $microseconds ) : void

Sleep for the specified number of microseconds.

Parameters

  • $microseconds mixed