… | |
… | |
78 | |
78 | |
79 | The interface itself is vaguely similar, but not identical to the L<Event> |
79 | The interface itself is vaguely similar, but not identical to the L<Event> |
80 | module. |
80 | module. |
81 | |
81 | |
82 | During the first call of any watcher-creation method, the module tries |
82 | During the first call of any watcher-creation method, the module tries |
83 | to detect the currently loaded event loop by probing whether one of the |
83 | to detect the currently loaded event loop by probing whether one of |
84 | following modules is already loaded: L<Coro::EV>, L<Coro::Event>, L<EV>, |
84 | the following modules is already loaded: L<Coro::EV>, L<Coro::Event>, |
85 | L<Event>, L<Glib>, L<Tk>. The first one found is used. If none are found, |
85 | L<EV>, L<Event>, L<Glib>, L<Tk>, L<Event::Lib>, L<Qt>. The first one |
86 | the module tries to load these modules in the stated order. The first one |
86 | found is used. If none are found, the module tries to load these modules |
|
|
87 | (excluding Event::Lib and Qt) in the order given. The first one that can |
87 | that can be successfully loaded will be used. If, after this, still none |
88 | be successfully loaded will be used. If, after this, still none could be |
88 | could be found, AnyEvent will fall back to a pure-perl event loop, which |
89 | found, AnyEvent will fall back to a pure-perl event loop, which is not |
89 | is not very efficient, but should work everywhere. |
90 | very efficient, but should work everywhere. |
90 | |
91 | |
91 | Because AnyEvent first checks for modules that are already loaded, loading |
92 | Because AnyEvent first checks for modules that are already loaded, loading |
92 | an event model explicitly before first using AnyEvent will likely make |
93 | an event model explicitly before first using AnyEvent will likely make |
93 | that model the default. For example: |
94 | that model the default. For example: |
94 | |
95 | |