Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (15 sloc) 697 Bytes
=begin pod =TITLE class X::Channel::ReceiveOnClosed =SUBTITLE Error due to calling receive on a closed channel class X::Channel::ReceiveOnClosed {} This exception is thrown when a calling C on a L that has been closed: my $s =; $s.close; $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␤» =head1 Methods =head2 method channel method Channel(X::Channel::ReceiveOnClosed:D: --> Channel:D) Returns the Channel object on which the C method was called. =end pod
You can’t perform that action at this time.