Close the write direction of the stream. Blocks until the close is complete.
This will make the other end reach end of file when reading from a stream when all sent data has been received and acknowledged. A call to close does not affect the read direction of the stream.
public func close() throws
- if the stream is closed
- if a stream write is in progress