Event::generic - generic event handling |
Event::generic - generic event handling
use Event::generic;
$source = Event::generic::Source->new;
$w = Event->generic(source => $source, ...); $w = $source->watch(...);
$source = $w->source; $w->source($source);
$source->event; $source->event($data);
$data = $event->data;
This module provides a watcher type within the Event
framework.
You must understand the architecture of the Event
system in order to
understand this document.
This module provides a system of reified event sources and watchers watching those sources. Events are generated solely by a method on the event source object. The events may carry arbitrary data to the event handler callbacks. This module is intended for situations where the events of interest are best determined by Perl code.
Event::generic::Source
event sources.
event(DATA)
data()
method.
Event::generic
, and may be
reconfigured to watch a different event source.
Event::generic::Source
object or undef
. When set to undef
,
no source is being watched, and the watcher cannot be started.
Event::generic - generic event handling |