ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/eg/lwp
Revision: 1.5
Committed: Sun Nov 5 02:18:06 2006 UTC (17 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rel-2_5, rel-3_41, rel-3_55, rel-3_51, rel-3_4, rel-3_1, rel-3_5, rel-3_3, rel-3_2, rel-3_0, rel-3_01, rel-3_11, stack_sharing, rel-3_501
Changes since 1.4: +1 -15 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #!/usr/bin/perl
2    
3     use Coro;
4     use Coro::Event;
5 root 1.5 use Coro::LWP; # should be use'd as early as possible
6 root 1.1 use LWP::Simple;
7    
8 root 1.3 $SIG{PIPE} = 'IGNORE';
9    
10 root 1.1 async {
11 root 1.4 print "hi2\n";
12     get "http://www.google.de/";
13     print "ho2\n";
14     };
15    
16     async {
17 root 1.1 print "hi\n";
18 root 1.4 get "http://www.yahoo.com/";
19 root 1.1 print "ho\n";
20    
21     };
22    
23 root 1.4 loop;
24 root 1.1