Beam-Emitter
view release on metacpan or search on metacpan
- Allow the event's name to be overridden when emitting the event.
This is a rare thing to want, but it makes some future cookbook
items (like a catch-all '*' event) more useful.
- Allow the event's emitter object to be overridden when emitting
the event. This, too, is a rare thing to want, but it allows an
object to more easily proxy the event emitter if needed. Thanks
@djerius! (Github #19)
- Added a Cookbook document (Beam::Emitter::Cookbook) to start
demonstrating some useful patterns that aren't quite useful or
generally-desired enough to be part of the main distribution
always. Thanks @yanick for the help! (Github #12)
- Enhanced how Beam::Emitter tracks listeners by creating
Beam::Listener objects with the option of adding additional
metadata to the listener by extending the Beam::Listener class.
Thanks @djerius! (Github #16)
- Added a method (`listeners()`) to list the current listeners
CONTRIBUTING.md
LICENSE
MANIFEST
META.json
META.yml
Makefile.PL
README
cpanfile
dist.ini
lib/Beam/Emitter.pm
lib/Beam/Emitter/Cookbook.pod
lib/Beam/Event.pm
lib/Beam/Listener.pm
t/00-compile.t
t/00-report-prereqs.dd
t/00-report-prereqs.t
t/cookbook.t
t/custom_event.t
t/emitter.t
t/leak.t
t/lib/CustomListener.pm
lib/Beam/Emitter.pm view on Meta::CPAN
#pod
#pod There's no way to stop the door being opened, but you can at least notify
#pod someone before it does.
#pod
#pod =head1 SEE ALSO
#pod
#pod =over 4
#pod
#pod =item L<Beam::Event>
#pod
#pod =item L<Beam::Emitter::Cookbook>
#pod
#pod This document contains some useful patterns for your event emitters and
#pod listeners.
#pod
#pod =item L<http://perladvent.org/2013/2013-12-16.html>
#pod
#pod Coordinating Christmas Dinner with Beam::Emitter by Yanick Champoux.
#pod
#pod =back
#pod
lib/Beam/Emitter.pm view on Meta::CPAN
specified event from this emitter. The list elements are either
instances of L<Beam::Listener> or of custom classes specified in calls
to L</subscribe>.
=head1 SEE ALSO
=over 4
=item L<Beam::Event>
=item L<Beam::Emitter::Cookbook>
This document contains some useful patterns for your event emitters and
listeners.
=item L<http://perladvent.org/2013/2013-12-16.html>
Coordinating Christmas Dinner with Beam::Emitter by Yanick Champoux.
=back
lib/Beam/Emitter/Cookbook.pod view on Meta::CPAN
#PODNAME: Beam::Emitter::Cookbook
#ABSTRACT: Recipes for simple Beam::Emitter patterns
__END__
=pod
=head1 NAME
Beam::Emitter::Cookbook - Recipes for simple Beam::Emitter patterns
=head1 VERSION
version 1.007
=head1 DESCRIPTION
This document contains recipes for things that Beam::Emitter does not do
by default, but that you can add to your project with only a few lines
of code.
( run in 0.280 second using v1.01-cache-2.11-cpan-e9199f4ba4c )