ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/t/06_loop_once.t
(Generate patch)

Comparing EV/t/06_loop_once.t (file contents):
Revision 1.1 by root, Fri Dec 21 05:30:25 2007 UTC vs.
Revision 1.2 by root, Wed Nov 19 10:16:39 2008 UTC

7use EV; 7use EV;
8 8
9my $l = new EV::Loop; 9my $l = new EV::Loop;
10 10
11for my $i (3..5) { 11for my $i (3..5) {
12 $l->once (undef, 0, $i * 0.2, sub { 12 $l->once (undef, 0, ($i - 3) * 0.5 + 1.0, sub {
13 print $_[0] == EV::TIMEOUT ? "" : "not ", "ok $i\n"; 13 print $_[0] == EV::TIMEOUT ? "" : "not ", "ok $i\n";
14 }); 14 });
15} 15}
16 16
17socketpair my $s1, my $s2, AF_UNIX, SOCK_STREAM, PF_UNSPEC; 17socketpair my $s1, my $s2, AF_UNIX, SOCK_STREAM, PF_UNSPEC;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines