Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
1 while ($_ = shift and @ARGV and !fork);
|
||||
sleep $_;
|
||||
print "$_\n";
|
||||
wait;
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
use Coro;
|
||||
$ret = Coro::Channel->new;
|
||||
@nums = qw(1 32 2 59 2 39 43 15 8 9 12 9 11);
|
||||
|
||||
for my $n (@nums){
|
||||
async {
|
||||
Coro::cede for 1..$n;
|
||||
$ret->put($n);
|
||||
}
|
||||
}
|
||||
|
||||
print $ret->get,"\n" for 1..@nums;
|
||||
Loading…
Add table
Add a link
Reference in a new issue