Skip to content

Commit

Permalink
Merge pull request #1839 from gfldex/patch-8
Browse files Browse the repository at this point in the history
tell that whenever reacts to a closed Channel
  • Loading branch information
JJ committed Mar 12, 2018
2 parents 8338cec + e3d968b commit a331f89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/Type/Channel.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ Close the C<Channel>, normally. This makes subsequent C<send> calls die with
L<X::Channel::SendOnClosed>. Subsequent calls of C<.receive> may still drain
any remaining items that were previously sent, but if the queue is empty, will
throw an L<X::Channel::ReceiveOnClosed> exception. A C<Seq> produced by an
C<@()> or by the C<.list> method will not terminate until this has been done.
C<@()> or by the C<.list> method will not terminate until this has been done.
A L<whenever|/language/concurrency#index-entry-whenever>-block will also
terminate properly on a closed channel.
my $c = Channel.new;
$c.close;
Expand Down

0 comments on commit a331f89

Please sign in to comment.