Revision: | 1.2 |
Committed: | Fri Nov 23 13:08:57 2007 UTC (16 years, 7 months ago) by root |
Content type: | application/x-troff |
Branch: | MAIN |
CVS Tags: | rel-1_3 |
Changes since 1.1: | +5 -8 lines |
Log Message: | *** empty log message *** |
# | Content |
---|---|
1 | BEGIN { $| = 1; print "1..6\n"; } |
2 | |
3 | no warnings; |
4 | use strict; |
5 | |
6 | use EV; |
7 | |
8 | for my $i (3..5) { |
9 | EV::once undef, 0, $i * 0.05, sub { |
10 | print $_[0] == EV::TIMEOUT ? "" : "not ", "ok $i\n"; |
11 | }; |
12 | } |
13 | |
14 | EV::once 1, EV::WRITE, 0.5, sub { |
15 | print $_[0] == EV::WRITE ? "" : "not ", "ok 2\n"; |
16 | }; |
17 | |
18 | print "ok 1\n"; |
19 | EV::loop; |
20 | print "ok 6\n"; |