void setChannel()

in lib/src/stream_channel_completer.dart [52:58]


  void setChannel(StreamChannel<T> channel) {
    if (_set) throw StateError('The channel has already been set.');
    _set = true;

    _streamCompleter.setSourceStream(channel.stream);
    _sinkCompleter.setDestinationSink(channel.sink);
  }