… | |
… | |
68 | package EV; |
68 | package EV; |
69 | |
69 | |
70 | use strict; |
70 | use strict; |
71 | |
71 | |
72 | BEGIN { |
72 | BEGIN { |
73 | our $VERSION = '1.72'; |
73 | our $VERSION = '1.85'; |
74 | use XSLoader; |
74 | use XSLoader; |
75 | XSLoader::load "EV", $VERSION; |
75 | XSLoader::load "EV", $VERSION; |
76 | } |
76 | } |
77 | |
77 | |
78 | @EV::IO::ISA = |
78 | @EV::IO::ISA = |
… | |
… | |
93 | =over 4 |
93 | =over 4 |
94 | |
94 | |
95 | =item $EV::DIED |
95 | =item $EV::DIED |
96 | |
96 | |
97 | Must contain a reference to a function that is called when a callback |
97 | Must contain a reference to a function that is called when a callback |
98 | throws an exception (with $@ containing thr error). The default prints an |
98 | throws an exception (with $@ containing the error). The default prints an |
99 | informative message and continues. |
99 | informative message and continues. |
100 | |
100 | |
101 | If this callback throws an exception it will be silently ignored. |
101 | If this callback throws an exception it will be silently ignored. |
102 | |
102 | |
103 | =item $time = EV::time |
103 | =item $time = EV::time |
… | |
… | |
838 | our $DIED = sub { |
838 | our $DIED = sub { |
839 | warn "EV: error in callback (ignoring): $@"; |
839 | warn "EV: error in callback (ignoring): $@"; |
840 | }; |
840 | }; |
841 | |
841 | |
842 | default_loop |
842 | default_loop |
843 | or die 'EV: cannot initialise libev backend. bad $ENV{LIBEV_METHODS}?'; |
843 | or die 'EV: cannot initialise libev backend. bad $ENV{LIBEV_FLAGS}?'; |
844 | |
844 | |
845 | 1; |
845 | 1; |
846 | |
846 | |
847 | =head1 SEE ALSO |
847 | =head1 SEE ALSO |
848 | |
848 | |