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

Comparing Coro/t/01_process.t (file contents):
Revision 1.5 by root, Mon Nov 27 02:01:33 2006 UTC vs.
Revision 1.6 by root, Thu Nov 30 18:21:14 2006 UTC

1$|=1; 1$|=1;
2print "1..3\n"; 2print "1..6\n";
3 3
4use Coro; 4use Coro;
5 5
6sub p1 : Coro { 6sub p1 : Coro {
7 print "ok 2\n"; 7 print "ok 2\n";
9 9
10print "ok 1\n"; 10print "ok 1\n";
11cede; 11cede;
12print "ok 3\n"; 12print "ok 3\n";
13 13
14my $c1 = async {
15 print "ok 5\n";
16 cede;
17};
18
19print $c1->ready ? "not " : "", "ok 4\n";
20
21cede;
22
23print "ok 6\n";
24

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines