Home Contents | # evh:enable | Event | Core4 Lua Event System

## SYNOPSIS

#include <lua/poll.lh>

1. evh:enable()
2. evh:disable()

## DESCRIPTION

These two calls allow to turn an already initialized event handler on or off.

Once a generic event handler has been acquired using event:add(), the handler starts enabled and ready to use.

To temporarily stop receiving events for that handler without actually closing it, use evh:disable(). Obviously, the other function evh:enable() will turn event reporting for that handler back on.

## SEE ALSO

event:add, event.new, event:pause, event:poll, event:reset, event:shell, event:timer, evh:close