--- AnyEvent/README 2006/11/01 01:22:19 1.6 +++ AnyEvent/README 2006/11/24 14:50:12 1.7 @@ -147,6 +147,22 @@ $result_ready->wait; +GLOBALS + $AnyEvent::MODEL + Contains "undef" until the first watcher is being created. Then it + contains the event model that is being used, which is the name of + the Perl class implementing the model. This class is usually one of + the "AnyEvent::Impl:xxx" modules, but can be any other class in the + case AnyEvent has been extended at runtime (e.g. in *rxvt-unicode*). + + The known classes so far are: + + AnyEvent::Impl::Coro based on Coro::Event, best choise. + AnyEvent::Impl::Event based on Event, also best choice :) + AnyEvent::Impl::Glib based on Glib, second-best choice. + AnyEvent::Impl::Tk based on Tk, very bad choice. + AnyEvent::Impl::Perl pure-perl implementation, inefficient. + WHAT TO DO IN A MODULE As a module author, you should "use AnyEvent" and call AnyEvent methods freely, but you should not load a specific event module or rely on it.