phasync
UnbufferedStream / close

Method

UnbufferedStream::close

Discards the unread content.

Description#

public UnbufferedStream::close(): void

Reads until end() has been called, so that the appending coroutine is not left waiting, and then releases the buffer. It waits as long as the writer takes.