Home  Contents

event:reset

Event Core4 Lua Event System

SYNOPSIS

app:reset()

DESCRIPTION

This function will clean up the state of the event processor if it has been disrupted by jumping out of a nested event loop back into the main loop.

These jumps may happen if an application catches a lua error() by using pcall().

In that case, the event system cannot know that a nested event loop has been forcefully aborted and needs to reinitialize.

NOTES

This is advanced event processing. Here be dragons. Only Zen masters should attempt to nest event loops.

BUGS

Did I mention that nested event loops are tricky?

SEE ALSO