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.2 by root, Sat Jul 14 22:14:21 2001 UTC vs.
Revision 1.8 by root, Thu Jan 4 20:14:20 2007 UTC

1$|=1; 1$|=1;
2print "1..3\n"; 2print "1..9\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";
8} 8}
9 9
10print "ok 1\n"; 10print "ok 1\n";
11yield; 11cede;
12print "ok 3\n"; 12print "ok 3\n";
13 13
14my $c1 = async {
15 print "ok 5\n";
16 cede;
17 print "not ok 8\n";#d#
18};
19
20print $c1->ready ? "not " : "", "ok 4\n";
21
22cede;
23
24print "ok 6\n";
25
26$c1->on_destroy (sub {
27 print "ok 7\n";
28});
29
30$c1->cancel;
31
32print "ok 8\n";
33
34cede; cede;
35
36print "ok 9\n";
37

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines