ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/01_basic.t
Revision: 1.5
Committed: Sat Jul 18 00:05:29 2009 UTC (14 years, 10 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: rel-4_91, rel-4_86, rel-5_112, rel-5_251, rel-0_85, rel-5_261, rel-5_271, rel-5_28, rel-5_29, rel-5_21, rel-5_22, rel-5_23, rel-5_24, rel-5_26, rel-5_27, rel-5_1, rel-5_0, rel-5_2, rel-5_201, rel-5_202, rel-5_111, rel-4_881, rel-4_9, rel-5_01, rel-4_88, rel-5_11, rel-5_12
Changes since 1.4: +2 -3 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 use AnyEvent;
2 root 1.2 use AnyEvent::Impl::Perl;
3 root 1.1
4 root 1.5 $| = 1; print "1..6\n";
5    
6 root 1.1 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 root 1.4 AnyEvent->timer (after => 0.01, cb => sub { print "not ok 5\n" });
17 root 1.1
18     print "ok 4\n";
19    
20     $cv->wait;
21    
22     print "ok 6\n";
23