Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make Proc::Async.say gist, spotted by moritz++
  • Loading branch information
lizmat committed Jan 25, 2015
1 parent 7e8d8af commit 5dd603b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Proc/Async.pm
Expand Up @@ -231,11 +231,11 @@ my class Proc::Async {
$p
}

method say(Proc::Async:D: $str as Str, |c) {
method say(Proc::Async:D: \x, |c) {
X::Proc::Async::OpenForWriting.new(:method<say>).throw if !$!w;
X::Proc::Async::MustBeStarted.new(:method<say>).throw if !$!started;

self.print( $str ~ "\n", |c );
self.print( x.gist ~ "\n", |c );
}

method write(Proc::Async:D: Blob:D $b, :$scheduler = $*SCHEDULER) {
Expand Down

0 comments on commit 5dd603b

Please sign in to comment.