use AnyEvent; BEGIN { eval q{use AnyEvent::Impl::IOAsync;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::IOAsync not found}), exit 0) } use IO::Async::Loop; AnyEvent::Impl::IOAsync::set_loop new IO::Async::Loop; $| = 1; print "1..6\n"; print "ok 1\n"; my $cv = AnyEvent->condvar; print "ok 2\n"; my $timer1 = AnyEvent->timer (after => 0.1, cb => sub { print "ok 5\n"; $cv->broadcast }); print "ok 3\n"; AnyEvent->timer (after => 0.01, cb => sub { print "not ok 5\n" }); print "ok 4\n"; $cv->wait; print "ok 6\n";