Skip to content

Commit

Permalink
Reword IO::Socket::Async::ListenSocket's page's first paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiepi committed Feb 11, 2020
1 parent 78141c2 commit 0fa0519
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions doc/Type/IO/Socket/Async/ListenSocket.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
class IO::Socket::Async::ListenSocket is Tap {}
C<IO::Socket::Async::ListenSocket> is returned by the
C<tap|/type/Supply#method_tap> method when called on the
L<Supply|/type/Supply> returned by calling the
L<listen|/type/IO::Socket::Async#method_listen> method of
L<IO::Socket::Async|/type/IO::Socket::Async>, which represents a listening TCP
socket:
C<IO::Socket::Async::ListenSocket> represents a listening TCP socket.
Instances of this are returned by the L<tap|/type/Supply#method_tap>
method of the supply returned by
L<IO::Socket::Async.listen|/type/IO::Socket::Async#method_listen>:
=begin code
my IO::Socket::Async::ListenSocket:D $server =
Expand All @@ -26,8 +24,8 @@ await Promise.in(10).then({ $server.close });
say "I'm done now.";
=end code
Alternatively, by using the C<do> prefix with C<whenever>, you can also use it
from within a C<react> block:
Alternatively, by using the C<do> prefix with C<whenever>, you can also
use it from within a C<react> block:
=for code
react {
Expand Down

0 comments on commit 0fa0519

Please sign in to comment.