method closed
Documentation for method closed assembled from the following types:
class Channel
From Channel
(Channel) method closed
Defined as:
method closed(Channel:D: --> Promise:D)
Returns a promise that will be kept once the channel is closed by a call to method close.
my $c = Channel.new;
$c.closed.then({ say "It's closed!" });
$c.close;
sleep 1;