ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/68_poe_01_basic.t
Revision: 1.2
Committed: Thu Apr 23 22:44:30 2009 UTC (15 years, 2 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: rel-4_4, rel-4_45, rel-4_41, rel-4_42, rel-4_412, rel-4_81, rel-4_411, rel-4_8
Changes since 1.1: +1 -0 lines
Log Message:
*** empty log message ***

File Contents

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