Joshua N Pritikin wrote:
>What is the point of the Event::generic::Source class?
To allow any number of watchers to watch the same events.
>It seems like there is only one really important method in the class --
>"event" to create a new event. So what I'm thinking is why not just add
>this metho
Joshua N Pritikin wrote:
>The embarrassing inconsistency is that the other watcher types do not
>offer this API. Signal watchers could easily offer this API. However,
>it doesn't make much sense for io, timers, or idle watchers.
This is because the other watcher types don't have reified event so
On Wed, 2004-12-01 at 01:23 +, Zefram wrote:
> +=head1 SYNOPSIS
> +
> + use Event::generic;
> +
> + $source = Event::generic::Source->new;
> +
> + $w = Event->generic(source => $source, ...);
> + $w = $source->watch(...);
> +
> + $source = $w->source;
> + $w->source($source);
> +
> + @watchers
On Fri, 2004-12-03 at 12:21 +, Zefram wrote:
> >Even though the Event API is inconsistent and quirky, I would like to
> >strive for consistency where possible.
>
> You seem to be hinting that the ->active_watchers() interface is in
> some way inconsistent with this watcher-number independence.