Home  Contents

event:pause

Event Core4 Lua Event System

SYNOPSIS

app:pause(ms)

DESCRIPTION

Pauses the application for at least ms milliseconds. During the pause time, the event loop runs and callbacks are still handled. This is in contrast to the generic os.sleep(), which stops the application dead for the given delay.

NOTES

The time spent pausing might be longer than specified, especially if lengthy callbacks are handled during the wait.

EXAMPLE

app:pause(500)

SEE ALSO