Skip to content

Commit 35f76f6

Browse files
committed
Some text tweaks, hope moritz++ is ok with them
1 parent 60a9e31 commit 35f76f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Type/Channel.pod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Channel { ... }
88
99
A Channel is a thread-safe queue that helps you to send a series of objects from
10-
potentially mutltiple produces to potentially multiple consumers.
10+
one or more producers to one or more consumers.
1111
1212
my $c = Channel.new;
1313
await (^10).map: {
@@ -26,15 +26,15 @@ potentially mutltiple produces to potentially multiple consumers.
2626
2727
method send(Channel:D: \item)
2828
29-
Enqueues an into the channel. Throws an exception of type
29+
Enqueues an item into the channel. Throws an exception of type
3030
C<X::Channel::SendOnClosed> if the channel has been closed already.
3131
3232
=head2 method receive
3333
3434
method receive(Channel:D:)
3535
3636
Receives and removes an item from the channel. It blocks if no item is
37-
present, waiting for a C<.send> from another thread.
37+
present, waiting for a C<send> from another thread.
3838
3939
Throws an exception of
4040
type C<X::Channel::ReceiveOnClose> if the channel has been closed, and the
@@ -69,7 +69,7 @@ and is a prerequisite for C<list> to terminate.
6969
method list(Channel:D:) returns List:D
7070
7171
Returns a list of all remaining items in the queue, and removes them from the
72-
channel. This can only terminate once C<.close> has been called.
72+
channel. This can only terminate once C<close> has been called.
7373
7474
=head2 method closed
7575

0 commit comments

Comments
 (0)