Development/Libraries/Perl

perl-AnyEvent: DBI of event loop programming

IInfo.png projhp.png wikart.png
(auf gut Glück) (meist engl.) (falls vorhanden)

Zusammenfassung (meist engl.)
the AnyEvent manpage provides a uniform interface to various event loops. This allows module authors to use event loop functionality without forcing module users to use a specific event loop implementation (since more than one event loop cannot coexist peacefully). The interface itself is vaguely similar, but not identical to the the Event manpage module. During the first call of any watcher-creation method, the module tries to detect the currently loaded event loop by probing whether one of the following modules is already loaded: the EV manpage, the AnyEvent::Loop manpage, the Event manpage, the Glib manpage, the Tk manpage, the Event::Lib manpage, the Qt manpage, the POE manpage. The first one found is used. If none are detected, the module tries to load the first four modules in the order given; but note that if the EV manpage is not available, the pure-perl the AnyEvent::Loop manpage should always work, so the other two are not normally tried. Because AnyEvent first checks for modules that are already loaded, loading an event model explicitly before first using AnyEvent will likely make that model the default. For example: use Tk; use AnyEvent; The _likely_ means that, if any module loads another event model and starts using it, all bets are off - this case should be very rare though, as very few modules hardcode event loops without announcing this very loudly. The pure-perl implementation of AnyEvent is called 'AnyEvent::Loop'. Like other event modules you can load it explicitly and enjoy the high availability of that event loop :)
Installieren: perl-AnyEvent.jpg Status: perl-AnyEvent.png Umfang:366 KiB