File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use lib 't/spec/packages';
3
3
4
4
use Test ;
5
5
6
- plan 37 ;
6
+ plan 17 ;
7
7
8
8
dies-ok { Supply . throttle(1 ,1 ) }, ' can not be called as a class method' ;
9
9
@@ -55,13 +55,13 @@ diag "**** scheduling with {$*SCHEDULER.WHAT.perl}";
55
55
# is @a.sum, 10, "ok with $n at a time";
56
56
# }
57
57
58
- for 1 .. 10 -> $ n {
59
- my @ a [10 ]; # pre-size array to allow seamless multi-thread updates
60
- my $ before = now;
61
- (^ 10 ). Supply . throttle( $ n , { sleep rand ; @ a [$ _ ] = 1 } ). wait ;
62
- ok now < $ before + ((12 - $ n ) * .6 ), " parallelism as expected with $ n" ;
63
- is @ a . sum , 10 , " ok with $ n at a time with random delay" ;
64
- }
58
+ # for 1..10 -> $n {
59
+ # my @a[10]; # pre-size array to allow seamless multi-thread updates
60
+ # my $before = now;
61
+ # (^10).Supply.throttle( $n, { sleep rand; @a[$_] = 1 } ).wait;
62
+ # ok now < $before + ((12 - $n) * .6), "parallelism as expected with $n";
63
+ # is @a.sum, 10, "ok with $n at a time with random delay";
64
+ # }
65
65
66
66
{
67
67
my $ status = Supplier. new ;
You can’t perform that action at this time.
0 commit comments