diff --git a/src/core/Supply.pm b/src/core/Supply.pm index 86586b4fd73..833e0fbea70 100644 --- a/src/core/Supply.pm +++ b/src/core/Supply.pm @@ -1238,12 +1238,14 @@ my class Supply does Awaitable { whenever $supply -> \val { @values[$index].push(val); emit( [[&with]] @values.map(*.shift) ) if all(@values); + LAST { done } } } else { whenever $supply -> \val { @values[$index].push(val); emit( $(@values.map(*.shift).list.eager) ) if all(@values); + LAST { done } } } }