Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix hang in S17-promise/allof.t
Need to flatten explicitely to avoid creating a self-referencing array.
  • Loading branch information
niner committed Aug 16, 2015
1 parent a1990b5 commit 9aa1eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S17-promise/allof.t
Expand Up @@ -34,7 +34,7 @@ plan 11;
my @p = (^10).pick(*).map: {
start {
sleep 2 * $_;
cas @a, -> @current { my @ = @current, OUTER::<$_> };
cas @a, -> @current { my @ = flat @current, OUTER::<$_> };
}
};
my $all = Promise.allof(@p);
Expand Down

0 comments on commit 9aa1eef

Please sign in to comment.