Comparing Coro/t/01_process.t (file contents):
Revision 1.6 by root, Thu Nov 30 18:21:14 2006 UTC vs.
Revision 1.7 by root, Fri Dec 29 08:36:34 2006 UTC
1 | $|=1; |
1 | $|=1; |
2 | print "1..6\n"; |
2 | print "1..9\n"; |
3 | |
3 | |
4 | use Coro; |
4 | use Coro; |
5 | |
5 | |
6 | sub p1 : Coro { |
6 | sub p1 : Coro { |
7 | print "ok 2\n"; |
7 | print "ok 2\n"; |
… | |
… | |
20 | |
20 | |
21 | cede; |
21 | cede; |
22 | |
22 | |
23 | print "ok 6\n"; |
23 | print "ok 6\n"; |
24 | |
24 | |
|
|
25 | $c1->on_destroy (sub { |
|
|
26 | print "ok 8\n"; |
|
|
27 | }); |
|
|
28 | |
|
|
29 | $c1->cancel; |
|
|
30 | |
|
|
31 | print "ok 7\n"; |
|
|
32 | |
|
|
33 | cede; |
|
|
34 | |
|
|
35 | print "ok 9\n"; |
|
|
36 | |
Diff Legend
– |
Removed lines |
+ |
Added lines |
< |
Changed lines |
> |
Changed lines |