Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't need to pass values to .keep/.break anymore
  • Loading branch information
lizmat committed Sep 17, 2014
1 parent 79b6cec commit 9d2cfad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/Proc/Async.pm
Expand Up @@ -135,11 +135,11 @@ my class Proc::Async {
$!stdout_type ?? 'stdout_chars' !! 'stdout_bytes',
-> Mu \seq, Mu \data, Mu \err {
if err {
$promise.break(False);
$promise.break;
$!stdout_supply.quit(err);
}
elsif seq < 0 {
$promise.keep(True);
$promise.keep;
$!stdout_supply.done();
}
else {
Expand All @@ -153,11 +153,11 @@ my class Proc::Async {
$!stderr_type ?? 'stderr_chars' !! 'stderr_bytes',
-> Mu \seq, Mu \data, Mu \err {
if err {
$promise.break(False);
$promise.break;
$!stderr_supply.quit(err);
}
elsif seq < 0 {
$promise.keep(True);
$promise.keep;
$!stderr_supply.done();
}
else {
Expand Down

0 comments on commit 9d2cfad

Please sign in to comment.