asConnection

suspend fun Pair<ByteReadChannel, ByteWriteChannel>.asConnection(env: KsrpcEnvironment<String>): Connection<String>

Create a Connection for the given input/output channel.

Helper that calls into Pair.asConnection.


Create a Connection that starts the process and uses the Process.getInputStream and Process.getOutputStream as the streams for communication