Close this channel.
the termination signal.
Write a segment on this channel.
the segment to write on the channel
an optional signal indicating if this is the last segment in the stream.
the continuation taking the seed on which to write subsequent segments. It may not be invoked if the termination signal is set.