changeSink method

  1. @override
StreamChannel<OperationMessage> changeSink(
  1. StreamSink<OperationMessage> change(
    1. StreamSink<OperationMessage>
    )
)
inherited

Returns a copy of this with sink replaced by change's return value.

Implementation

@override
StreamChannel<T> changeSink(StreamSink<T> Function(StreamSink<T>) change) =>
    StreamChannel.withCloseGuarantee(stream, change(sink));