Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
promise has "has_result", not "has_value".
  • Loading branch information
timo committed Nov 21, 2013
1 parent ba8b9fb commit 39c85ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/jvm/core/asyncops.pm
Expand Up @@ -90,7 +90,7 @@ sub WINNER(@winner_args, *@pieces, :$wild_done, :$wild_more, :$wait, :$wait_time
when Channel {
if (my $val := $_.poll()) !~~ Nil {
return invoke_right($wild_more, $_, $val);
} elsif $_.closed.has_value {
} elsif $_.closed.has_result {
return $wild_done(:k($_));
}
$has_channels = True;
Expand Down

0 comments on commit 39c85ba

Please sign in to comment.