Added ability to flush process output streams

This commit is contained in:
Robinson 2021-09-24 13:13:44 +02:00
parent 1832fe5eaf
commit 1faac35ec3
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 7 additions and 0 deletions

View File

@ -475,6 +475,13 @@ class DeferredProcessResult internal constructor(private val process: Process,
process.outputStream.flush()
}
/**
* Flushes the output stream to the process.
*/
fun flush() {
process.outputStream.flush()
}
/**
* Cancel waiting for this process to complete
*