1AnyEvent::Impl::Irssi(3U)ser Contributed Perl DocumentatiAonnyEvent::Impl::Irssi(3)
2
3
4
6 AnyEvent::Impl::Irssi - AnyEvent adaptor for Irssi
7
9 use AnyEvent;
10
11 # this module gets loaded automatically when running under irssi
12
14 This module provides transparent support for AnyEvent. You don't have
15 to do anything to make Irssi scripts work with AnyEvent.
16
17 Limitations of this backend and implementation details:
18
19 · This backend does not support blocking waits.
20
21 That means you must set a callback on any condvars, or otherwise
22 make sure to never call "recv" on a condvar that hasn't been
23 signalled yet.
24
25 · Child exits will be handled by AnyEvent.
26
27 AnyEvent will take over child handling, as Irssi only polls for
28 children once/second and cannot handle unspecific child watchers.
29
30 This should have no negative effect, as AnyEvent will emit a
31 pidwait signal just like irssi itself would.
32
33 · Artificial timer delays.
34
35 Irssi artificially enforces timers to have at least a 10ms delay.
36
37 This means that some applications will be limited to a rate of
38 100Hz (for example, Coro::AnyEvent thread scheduling).
39
40 · Irssi leaks memory like hell.
41
42 Yeah.
43
44 Apart from that, documentation is notoriously wrong (e.g. file handles
45 are not supported by "input_add", contrary to documentation), hooking
46 into irssi has to be done in... weird... ways, but otherwise, Irssi is
47 surprisingly full-featured (for basically being a hack).
48
50 AnyEvent, Irssi.
51
53 Marc Lehmann <schmorp@schmorp.de>
54 http://home.schmorp.de/
55
56
57
58perl v5.12.1 2009-08-09 AnyEvent::Impl::Irssi(3)