Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/Mojo/Promise.pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ sub AWAIT_NEW_FAIL { _await('reject', @_) }
sub AWAIT_ON_CANCEL { }

sub AWAIT_ON_READY {
shift->_finally(0, @_)->catch(sub { });
my ($self, $cb) = @_;
push @{$self->{resolve}}, $cb;
push @{$self->{reject}}, $cb;
}

sub AWAIT_WAIT {
Expand Down
Loading