Metered concurrency: Difference between revisions

Content added Content deleted
m (→‎{{header|Perl 6}}: use xx rather than for loop)
Line 1,029: Line 1,029:
method new ($max) {
method new ($max) {
my $s = self.bless;
my $s = self.bless;
$s.tickets.send(True) for ^$max;
$s.tickets.send(True) xx $max;
$s;
$s;
}
}