closeRead method

  1. @override
Future<void> closeRead()
override

Closes the stream for reading but leaves it open for writing.

When closeRead is called, all in-progress read calls are interrupted with a non-EOF error and no further calls to read will succeed.

The handling of new incoming data on the stream after calling this function is implementation defined.

closeRead does not free the stream, users must still call close or reset.

Implementation

@override
Future<void> closeRead() async {
  _logger.fine('[UDXP2PStreamAdapter ${id()}] closeRead() called. This is a no-op as dart-udx does not support read-side half-closure.');
}