Skip to content

Commit

Permalink
Replace send with print on IO::Socket::Async
Browse files Browse the repository at this point in the history
For consistency with IO::Socket
  • Loading branch information
hoelzro committed Jul 29, 2015
1 parent df4c333 commit 26589f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/IO/Socket/Async.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ my class IO::Socket::Async {
"IO::Socket::Async.connect or IO::Socket::Async.listen.";
}

method send(IO::Socket::Async:D: Str() $str, :$scheduler = $*SCHEDULER) {
method send(|c) {
DEPRECATED('print', |<2015.07 2015.09>);
self.print(|c)
}

method print(IO::Socket::Async:D: Str() $str, :$scheduler = $*SCHEDULER) {
my $p = Promise.new;
my $v = $p.vow;
nqp::asyncwritestr(
Expand Down

0 comments on commit 26589f2

Please sign in to comment.