finalize method

ByteStream finalize ()
override

Freezes all mutable fields other than stream and returns a single-subscription ByteStream that emits the data being written to sink.

Implementation

ByteStream finalize() {
  super.finalize();
  return new ByteStream(_controller.stream);
}