Name : perl-Object-Event
| |
Version : 1.230.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 150500.1.1
| Date : 2024-07-26 22:50:52
|
Group : Unspecified
| Source RPM : perl-Object-Event-1.230.0-150500.1.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Class that provides an event callback interface
|
Description :
This module was mainly written for AnyEvent::XMPP, AnyEvent::IRC, AnyEvent::HTTPD and BK to provide a consistent API for registering and emitting events. Even though I originally wrote it for those modules I released it separately in case anyone may find this module useful.
For more comprehensive event handling see also Glib and POE.
This class provides a simple way to extend a class, by inheriting from this class, with an event callback interface.
You will be able to register callbacks for events, identified by their names (a string) and call them later by invoking the \'event\' method with the event name and some arguments.
There is even a syntactic sugar which allows to call methods on the instances of Object::Event-derived classes, to invoke events. For this feature see the EVENT METHODS section of this document.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/SLE_15_SP5/noarch |