--- EV/EV.pm 2007/10/27 14:54:20 1.7 +++ EV/EV.pm 2007/10/27 19:11:27 1.8 @@ -62,7 +62,7 @@ XSLoader::load "EV", $VERSION; } -=head1 FUNCTIONAL INTERFACE +=head1 BASIC INTERFACE =over 4 @@ -70,6 +70,14 @@ How many priority levels are available. +=item $EV::DIED + +Must contain a reference to a function that is called when a callback +throws an exception (with $@ containing thr error). The default prints an +informative message and continues. + +If this callback throws an exception it will be silently ignored. + =item $time = EV::now Returns the time in (fractional) seconds since the epoch. @@ -233,6 +241,10 @@ =cut +our $DIED = sub { + warn "EV: error in callback (ignoring): $@"; +}; + our $NPRI = 4; our $BASE = init; priority_init $NPRI;