Event::Emitter::Role::Node - Node.js like event handling

NAME

Event::Emitter::Role::Node - Node.js like event handling

SYNOPSIS


   use Event::Emitter::Role::Node;

   class Foo does Event::Emitter::Role::Node {
   }

   my $foo = Foo.new;

   $foo.on('message', { say $_ });

   $foo.emit('message', 'My Message');

METHODS

The role provides two methods, one to subscribe to events and one to publish them. They take exactly the same arguments as on and emit in Event::Emitter.

Event::Emitter v1.0.2

Awesome event emitter. Threaded, or not.

Authors

  • Tony O'Dell

License

Dependencies

Test Dependencies

Provides

  • Event::Emitter
  • Event::Emitter::Channel
  • Event::Emitter::Role::Handler
  • Event::Emitter::Role::Node
  • Event::Emitter::Role::Typed
  • Event::Emitter::Supply

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.