Module sleep

Pure LuaJIT bindings for Windows and Linux native sleep function.

Info:

  • Copyright: 2026
  • Release: 1.0.0
  • License: CC0 1.0 Universal (CC0 1.0) (Public Domain)
  • Author: Herwin Bozet (NibblePoker)

Functions

sleep_ms (milliseconds) Sleeps for a given amount of milliseconds and returns.
sleep_s (seconds) Sleeps for a given amount of seconds and returns.

Fields

ignore_errors Allows you to ignore errors about negative numbers and others returned by the OS.


Functions

sleep_ms (milliseconds)
Sleeps for a given amount of milliseconds and returns. \ May be interrupted by the OS.

Parameters:

  • milliseconds number Amount of milliseconds to sleep.
sleep_s (seconds)
Sleeps for a given amount of seconds and returns. \ May be interrupted by the OS.

Parameters:

  • seconds number Amount of seconds to sleep.

Fields

ignore_errors
Allows you to ignore errors about negative numbers and others returned by the OS.
generated by LDoc 1.5.0 Last updated 2026-04-09 16:02:53