class X::Channel::ReceiveOnClosed {}

This exception is thrown when a calling receive on a Channel that has been closed:

my $s =;
$s.receive;     # Cannot receive a message on a closed channel 
CATCH { default { put .^name''.Str } };
# OUTPUT: «X::Channel::ReceiveOnClosed: Cannot receive a message on a closed channel␤»


method channel§

method Channel(X::Channel::ReceiveOnClosed:D: --> Channel:D)

Returns the Channel object on which the receive method was called.


Type relations for X::Channel::ReceiveOnClosed
raku-type-graph X::Channel::ReceiveOnClosed X::Channel::ReceiveOnClosed Exception Exception X::Channel::ReceiveOnClosed->Exception Mu Mu Any Any Any->Mu Exception->Any

Expand chart above