Stop a stream.
All pending read operations are stopped. The write direction is also closed.
public func stop()