source

Returns a source that reads from in.


Returns a source that reads from socket. Prefer this over source because this method honors timeouts. When the socket read times out, the socket is asynchronously closed by a watchdog thread.


Returns a source that reads from file.


fun Path.source(vararg options: OpenOption): Source

Returns a source that reads from path.