laravel / 8 / api / 8.x / illuminate / support / timebox.html

Timebox

class Timebox (View source)

Properties

bool $earlyReturn

Indicates if the timebox is allowed to return early.

Methods

mixed call(callable $callback, int $microseconds)

Invoke the given callback within the specified timebox minimum.

$this returnEarly()

Indicate that the timebox can return early.

$this dontReturnEarly()

Indicate that the timebox cannot return early.

void usleep($microseconds)

Sleep for the specified number of microseconds.

Details

mixed call(callable $callback, int $microseconds)

Invoke the given callback within the specified timebox minimum.

Parameters

callable $callback
int $microseconds

Return Value

mixed

$this returnEarly()

Indicate that the timebox can return early.

Return Value

$this

$this dontReturnEarly()

Indicate that the timebox cannot return early.

Return Value

$this

protected void usleep($microseconds)

Sleep for the specified number of microseconds.

Parameters

$microseconds

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Support/Timebox.html