sink

Returns a sink that writes to out.


Returns a sink that writes to socket. Prefer this over sink because this method honors timeouts. When the socket write times out, the socket is asynchronously closed by a watchdog thread.


fun File.sink(append: Boolean = false): Sink

Returns a sink that writes to file.


fun Path.sink(vararg options: OpenOption): Sink

Returns a sink that writes to path.