ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/README
(Generate patch)

Comparing AnyEvent/README (file contents):
Revision 1.73 by root, Fri Sep 5 22:24:12 2014 UTC vs.
Revision 1.76 by root, Wed Jan 27 18:15:21 2016 UTC

1030 If you want to sprinkle loads of logging calls around your code, 1030 If you want to sprinkle loads of logging calls around your code,
1031 consider creating a logger callback with the "AnyEvent::Log::logger" 1031 consider creating a logger callback with the "AnyEvent::Log::logger"
1032 function, which can reduce typing, codesize and can reduce the 1032 function, which can reduce typing, codesize and can reduce the
1033 logging overhead enourmously. 1033 logging overhead enourmously.
1034 1034
1035 AnyEvent::fh_block $filehandle
1036 AnyEvent::fh_unblock $filehandle
1037 Sets blocking or non-blocking behaviour for the given filehandle.
1038
1035WHAT TO DO IN A MODULE 1039WHAT TO DO IN A MODULE
1036 As a module author, you should "use AnyEvent" and call AnyEvent methods 1040 As a module author, you should "use AnyEvent" and call AnyEvent methods
1037 freely, but you should not load a specific event module or rely on it. 1041 freely, but you should not load a specific event module or rely on it.
1038 1042
1039 Be careful when you create watchers in the module body - AnyEvent will 1043 Be careful when you create watchers in the module body - AnyEvent will
1604 my $txn = shift; 1608 my $txn = shift;
1605 my $data = $txn->result; 1609 my $data = $txn->result;
1606 ... 1610 ...
1607 }); 1611 });
1608 1612
1609 EV::loop; 1613 EV::run;
1610 1614
1611 3b. The module user could use AnyEvent, too: 1615 3b. The module user could use AnyEvent, too:
1612 1616
1613 use AnyEvent; 1617 use AnyEvent;
1614 1618
2121 2125
2122 Development/Debugging: AnyEvent::Strict (stricter checking), 2126 Development/Debugging: AnyEvent::Strict (stricter checking),
2123 AnyEvent::Debug (interactive shell, watcher tracing). 2127 AnyEvent::Debug (interactive shell, watcher tracing).
2124 2128
2125 Supported event modules: AnyEvent::Loop, EV, EV::Glib, Glib::EV, Event, 2129 Supported event modules: AnyEvent::Loop, EV, EV::Glib, Glib::EV, Event,
2126 Glib::Event, Glib, Tk, Event::Lib, Qt, POE, FLTK. 2130 Glib::Event, Glib, Tk, Event::Lib, Qt, POE, FLTK, Cocoa::EventLoop, UV.
2127 2131
2128 Implementations: AnyEvent::Impl::EV, AnyEvent::Impl::Event, 2132 Implementations: AnyEvent::Impl::EV, AnyEvent::Impl::Event,
2129 AnyEvent::Impl::Glib, AnyEvent::Impl::Tk, AnyEvent::Impl::Perl, 2133 AnyEvent::Impl::Glib, AnyEvent::Impl::Tk, AnyEvent::Impl::Perl,
2130 AnyEvent::Impl::EventLib, AnyEvent::Impl::Qt, AnyEvent::Impl::POE, 2134 AnyEvent::Impl::EventLib, AnyEvent::Impl::Qt, AnyEvent::Impl::POE,
2131 AnyEvent::Impl::IOAsync, Anyevent::Impl::Irssi, AnyEvent::Impl::FLTK. 2135 AnyEvent::Impl::IOAsync, AnyEvent::Impl::Irssi, AnyEvent::Impl::FLTK,
2136 AnyEvent::Impl::Cocoa, AnyEvent::Impl::UV.
2132 2137
2133 Non-blocking handles, pipes, stream sockets, TCP clients and servers: 2138 Non-blocking handles, pipes, stream sockets, TCP clients and servers:
2134 AnyEvent::Handle, AnyEvent::Socket, AnyEvent::TLS. 2139 AnyEvent::Handle, AnyEvent::Socket, AnyEvent::TLS.
2135 2140
2136 Asynchronous File I/O: AnyEvent::IO. 2141 Asynchronous File I/O: AnyEvent::IO.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines