AnyEvent-Emitter
view release on metacpan or search on metacpan
lib/AnyEvent/Emitter.pm view on Meta::CPAN
$e->on(error => sub {
my ($e, $err) = @_;
...
});
This is a special event for errors, it will not be emitted directly by this
class but is fatal if unhandled.
$e->on(error => sub {
my ($e, $err) = @_;
say "This looks bad: $err";
});
=head1 METHODS
=head2 catch
$e = $e->catch(sub {...});
Subscribe to L</"error"> event.
( run in 0.468 second using v1.01-cache-2.11-cpan-64827b87656 )