diff --git a/src/core/Supply.pm b/src/core/Supply.pm index e64d6a72a77..24c3be244c2 100644 --- a/src/core/Supply.pm +++ b/src/core/Supply.pm @@ -106,12 +106,11 @@ my role Supply { method wait() { my $l = Lock.new; my $p = Promise.new; - my $v = $p.vow; my $t = self.tap( -> \val {}, done => { $l.protect( { if $p.status == Planned { - $v.keep(True); + $p.keep(True); $t.close() } } ); @@ -119,7 +118,7 @@ my role Supply { quit => -> \ex { $l.protect( { if $p.status == Planned { - $v.break(ex); + $p.break(ex); $t.close() } } );