Skip to content

Commit

Permalink
Supply.zip should eager-shift its values
Browse files Browse the repository at this point in the history
Otherwise we're at the mercy of the thing that runs out downstream
emit in order to have correct behavior. Shaken out by refactors to
Supply concurrency control.
  • Loading branch information
jnthn committed Sep 20, 2017
1 parent 29863a0 commit f9400d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Supply.pm
Expand Up @@ -1170,7 +1170,7 @@ my class Supply does Awaitable {
else {
whenever $supply -> \val {
@values[$index].push(val);
emit( $(@values.map(*.shift).list) ) if all(@values);
emit( $(@values.map(*.shift).list.eager) ) if all(@values);
}
}
}
Expand Down

0 comments on commit f9400d9

Please sign in to comment.