ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/01_basic.t
Revision: 1.1
Committed: Fri Nov 24 14:40:13 2006 UTC (17 years, 6 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: rel-2_6, rel-2_5, rel-2_1, rel-2_55, rel-2_51, rel-2_52
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 $|=1;
2     BEGIN { print "1..6\n" }
3    
4     use AnyEvent;
5    
6     print "ok 1\n";
7    
8     my $cv = AnyEvent->condvar;
9    
10     print "ok 2\n";
11    
12     my $timer1 = AnyEvent->timer (after => 0.1, cb => sub { print "ok 5\n"; $cv->broadcast });
13    
14     print "ok 3\n";
15    
16     AnyEvent->timer (after => 0.05, cb => sub { print "not ok 5\n" });
17    
18     print "ok 4\n";
19    
20     $cv->wait;
21    
22     print "ok 6\n";
23