← All docs

sleep()

Delays execution for a number of seconds.

sleep()

function sleep(int $seconds): int

Delays execution for a number of seconds.

Parameters:

  • $seconds (int)

Returns: int

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how sleep is implemented in the compiler, see the internals page.