ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/t/02_channel.t
(Generate patch)

Comparing Coro/t/02_channel.t (file contents):
Revision 1.5 by root, Mon Jul 23 02:14:20 2001 UTC vs.
Revision 1.6 by root, Sat Apr 19 19:07:46 2008 UTC

4use Coro; 4use Coro;
5use Coro::Channel; 5use Coro::Channel;
6 6
7my $q = new Coro::Channel 1; 7my $q = new Coro::Channel 1;
8 8
9sub producer : Coro { 9async { # producer
10 for (1..9) { 10 for (1..9) {
11 print "ok ", $_*2, "\n"; 11 print "ok ", $_*2, "\n";
12 $q->put($_); 12 $q->put($_);
13 } 13 }
14} 14};
15 15
16print "ok 1\n"; 16print "ok 1\n";
17cede; 17cede;
18 18
19for (11..19) { 19for (11..19) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines