Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (39 sloc) 0.867 kb
use Test::More tests => 2;
{
package mxpoe;
use MooseX::POE;
use Test::More;
sub START {
my ( $kernel, $self ) = @_[ KERNEL, OBJECT ];
diag "Starting .... \n";
$kernel->yield('counter_event');
return;
}
event 'counter_event' => sub {
my ( $kernel, $self ) = @_[ KERNEL, OBJECT ];
pass('Got a counter event');
return;
};
no MooseX::POE;
__PACKAGE__->meta->make_immutable;
}
{
package mxpoet;
use MooseX::POE;
use Test::More;
extends 'mxpoe';
sub START {
my ( $kernel, $self ) = @_[ KERNEL, OBJECT ];
diag "Starting EXTENSION .... \n";
$kernel->yield('counter_event');
return;
}
no MooseX::POE;
}
package main;
use strict;
use warnings;
use POE;
my $mxpoe = mxpoet->new();
$poe_kernel->run();
exit 0;
Jump to Line
Something went wrong with that request. Please try again.