This exception is thrown when a calling send
on a Channel
that has been closed:
my = Channel.new;.close;.send(42);CATCH ;# OUTPUT: «X::Channel::SendOnClosed: Cannot send a message on a closed channel»
Methods§
method channel§
method Channel(X::Channel::SendOnClosed: --> Channel)
Returns the Channel object on which the send
method was called.