Blob


1 The ev module implements an event loop for files and signals. There's
2 an implicit global event loop accessible via the [[add]], [[del]],
3 [[loop]] and [[loopbreak]] functions as well as the support for
4 manually creating event loop via [[new]] and the methods returned.
6 Signals can be safely catched and the registered callback is called in
7 the main code environment, and not in a signal context, so no special
8 attention is needed. At the moment, signals can only be handled as
9 part of the implicit global event loop.
11 Caveats: if the event A deletes the event B, and the event B is
12 already pending, it can still be fired once.