This exception is thrown when a calling
receive on a Channel that has been closed:
my = Channel.new;.close;.receive; # Cannot receive a message on a closed channelCATCH ;# OUTPUT: «X::Channel::ReceiveOnClosed: Cannot receive a message on a closed channel␤»
method Channel(X::Channel::ReceiveOnClosed: --> Channel)
Returns the Channel object on which the
receive method was called.