txt: ## sendonclosed.md
  class X::Channel::SendOnClosed
  
  Error due to calling send on a closed channel
  
  ```raku
  class X::Channel::SendOnClosed {}
  ```
  
  This exception is thrown when a calling `send` on a [`Channel`](/type/Channel) that has been closed:
  
  ```raku
  my $s = Channel.new;
  $s.close;
  $s.send(42);
  CATCH { default { put .^name, ': ', .Str } };
  # OUTPUT: «X::Channel::SendOnClosed: Cannot send a message on a closed channel␤»
  ```
  
  # [Methods](#class_X::Channel::SendOnClosed "go to top of document")[§](#Methods "direct link")
  
  ## [method channel](#class_X::Channel::SendOnClosed "go to top of document")[§](#method_channel "direct link")
  
  ```raku
  method Channel(X::Channel::SendOnClosed:D: --> Channel:D)
  ```
  
  Returns the Channel object on which the `send` method was called.
  