ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/65_event_01_basic.t
Revision: 1.1
Committed: Thu Oct 2 08:43:57 2008 UTC (16 years, 2 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: rel-4_35, rel-4_4, rel-4_45, rel-4_82, rel-4_41, rel-4_352, rel-4_42, rel-4_31, rel-4_32, rel-4_34, rel-4_412, rel-4_83, rel-4_81, rel-4_3, rel-4_33, rel-4_411, rel-4_351, rel-4_8, rel-4_331
Log Message:
*** empty log message ***

File Contents

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