1AnyEvent::Impl::EventLiUbs(e3r)Contributed Perl DocumentAantyiEovnent::Impl::EventLib(3)
2
3
4

NAME

6       AnyEvent::Impl::EventLib - AnyEvent adaptor for Event::Lib
7

SYNOPSIS

9          use AnyEvent;
10          use Event::Lib;
11
12          # this module gets loaded automatically as required
13

DESCRIPTION

15       This module provides transparent support for AnyEvent. You don't have
16       to do anything to make Event work with AnyEvent except by loading
17       Event::Lib before creating the first AnyEvent watcher.
18
19       The Event::Lib module suffers from the same limitations and bugs as
20       libevent, most notably it kills already-installed watchers on a file
21       descriptor and it is unable to support fork. These are not fatal
22       issues, but Event::Lib itself has many additional bugs such as taking
23       references to file handles and callbacks instead of making a copy,
24       causing memory corruption and random crashes. Only Tk rivals it in its
25       brokenness.
26
27       This adaptor module employs the same workaround around the watcher
28       problem as Tk and should therefore be avoided. (This was done for
29       simplicity, one could in theory work around the problems with lower
30       overhead by managing our own watchers).
31
32       Event::Lib also leaks file handles and memory and tends to just exit on
33       problems.
34
35       It also doesn't work around the Windows bug of not signalling TCP
36       connection failures.
37
38       Event::Lib does not support idle watchers. They could be emulated using
39       low-priority timers but as the priority range (and availability) is not
40       queryable nor guaranteed, and the default priority is likely the lowest
41       one, this module cannot use them.
42
43       Avoid Event::Lib if you can.
44

SEE ALSO

46       AnyEvent, Event::Lib.
47

AUTHOR

49        Marc Lehmann <schmorp@schmorp.de>
50        http://home.schmorp.de/
51
52
53
54perl v5.12.1                      2010-03-12       AnyEvent::Impl::EventLib(3)
Impressum