Home Contents | # event.new | Event | Core4 Lua Event System

## SYNOPSIS

app = event.new()

## DESCRIPTION

This function creates a new event processor instance which is needed to run an event loop using event:poll(). An application usually has exactly one event processor.

## RETURN VALUE

An event processor instance.

## NOTES

Traditionally, the variable used to hold the event processor is called app.

## EXAMPLE

>
app = event.new()

## SEE ALSO

event:add, event:close, event:pause, event:poll, event:reset, event:shell, event:timer