Close this channel.
Close this channel.
Subsequently to a call to this method, any new segment written to this channel will be poisoned. Contrarily to the poison method on input channels, messages buffered are not poisoned and may still be read by a consumer listening on the other end of this channel.
the termination signal.
Unit
Put a segment on this channel.
Put a segment on this channel.
This method may block if there is no space available on the channel.
The continuation of this channel on which the next message must be put.
Trait for blocking system-level output channels.
This interface assumes that
put_!
andclose
methods are invoked sequentially.This trait is useful to wrap legacy blocking output interfaces and can easily be wrapped in a non-blocking
OChan
using thewrap
method in the companion object (see the implementation of molecule.channel.Console for examples).The type of messages.