| Revision: | 1.1 |
| Committed: | Wed Jul 1 21:42:55 2015 UTC (11 years, 4 months ago) by root |
| Content type: | application/x-troff |
| Branch: | MAIN |
| CVS Tags: | rel-1_0, rel-1_02, rel-1_03, rel-1_01, rel-1_06, rel-1_07, rel-1_04, rel-1_05, rel-0_03, rel-0_02, HEAD |
| Log Message: | *** empty log message *** |
| # | Content |
|---|---|
| 1 | #! perl |
| 2 | |
| 3 | BEGIN { $| = 1; print "1..7\n"; } |
| 4 | |
| 5 | use Coro; |
| 6 | use Coro::AnyEvent; |
| 7 | use Coro::Multicore; |
| 8 | |
| 9 | print "ok 1\n"; |
| 10 | |
| 11 | my $a11 = async { |
| 12 | print "ok 3\n"; |
| 13 | Coro::Multicore::sleep 1; |
| 14 | print "ok 4\n"; |
| 15 | }; |
| 16 | |
| 17 | my $a12 = async { |
| 18 | Coro::Multicore::sleep 2; |
| 19 | print "ok 6\n"; |
| 20 | }; |
| 21 | |
| 22 | print "ok 2\n"; |
| 23 | |
| 24 | $a11->join; |
| 25 | print "ok 5\n"; |
| 26 | $a12->join; |
| 27 | |
| 28 | print "ok 7\n"; |
| 29 |