Skip to content

Commit e3d968b

Browse files
authored
tell that whenever reacts to a closed Channel
1 parent 513c3e8 commit e3d968b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/Type/Channel.pod6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ Close the C<Channel>, normally. This makes subsequent C<send> calls die with
100100
L<X::Channel::SendOnClosed>. Subsequent calls of C<.receive> may still drain
101101
any remaining items that were previously sent, but if the queue is empty, will
102102
throw an L<X::Channel::ReceiveOnClosed> exception. A C<Seq> produced by an
103-
C<@()> or by the C<.list> method will not terminate until this has been done.
103+
C<@()> or by the C<.list> method will not terminate until this has been done.
104+
A L<whenever|/language/concurrency#index-entry-whenever>-block will also
105+
terminate properly on a closed channel.
104106
105107
my $c = Channel.new;
106108
$c.close;

0 commit comments

Comments
 (0)