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(mixed $microseconds)
Sleep for the specified number of microseconds.
Details
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.
protected void
usleep(mixed $microseconds)
Sleep for the specified number of microseconds.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.