ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/01_basic.t
Revision: 1.3
Committed: Wed Apr 23 11:25:42 2008 UTC (16 years, 1 month ago) by root
Content type: application/x-troff
Branch: MAIN
Changes since 1.2: +1 -1 lines
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 root 1.2 use AnyEvent::Impl::Perl;
6 root 1.1
7     print "ok 1\n";
8    
9     my $cv = AnyEvent->condvar;
10    
11     print "ok 2\n";
12    
13     my $timer1 = AnyEvent->timer (after => 0.1, cb => sub { print "ok 5\n"; $cv->broadcast });
14    
15     print "ok 3\n";
16    
17 root 1.3 AnyEvent->timer (after => 1, cb => sub { print "not ok 5\n" });
18 root 1.1
19     print "ok 4\n";
20    
21     $cv->wait;
22    
23     print "ok 6\n";
24