Blame


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