Process

expect class Process(args: ProcessArguments)

A child process.

actual class Process(val args: ProcessArguments)
actual class Process(val args: ProcessArguments)
actual class Process(val args: ProcessArguments)
actual class Process(val args: ProcessArguments)

Constructors

Link copied to clipboard
expect constructor(args: ProcessArguments)
actual constructor(args: ProcessArguments)
actual constructor(args: ProcessArguments)
actual constructor(args: ProcessArguments)
actual constructor(args: ProcessArguments)

Properties

Link copied to clipboard

Launch arguments used to start this process.

actual val args: ProcessArguments
Link copied to clipboard
expect val exitCode: Int?

Exit code of terminated process, or null if the process is still running.

actual val exitCode: Int?
actual val exitCode: Int?
actual val exitCode: Int?
actual val exitCode: Int?
Link copied to clipboard
expect val isAlive: Boolean

Check if the process is still running.

actual val isAlive: Boolean
actual val isAlive: Boolean
actual val isAlive: Boolean
actual val isAlive: Boolean
Link copied to clipboard
expect val stderr: BufferedSource?

stderr pipe if requested.

actual val stderr: BufferedSource?
actual val stderr: BufferedSource?
actual val stderr: BufferedSource?
actual val stderr: BufferedSource?
Link copied to clipboard
expect val stderrLines: Flow<String>

stderr lines if requested.

actual val stderrLines: Flow<String>
actual val stderrLines: Flow<String>
actual val stderrLines: Flow<String>
actual val stderrLines: Flow<String>
Link copied to clipboard
expect val stdin: BufferedSink?

stdin pipe if requested.

actual val stdin: BufferedSink?
actual val stdin: BufferedSink?
actual val stdin: BufferedSink?
actual val stdin: BufferedSink?
Link copied to clipboard
expect val stdout: BufferedSource?

stdout pipe if requested.

actual val stdout: BufferedSource?
actual val stdout: BufferedSource?
actual val stdout: BufferedSource?
actual val stdout: BufferedSource?
Link copied to clipboard
expect val stdoutLines: Flow<String>

stdout lines if requested.

actual val stdoutLines: Flow<String>
actual val stdoutLines: Flow<String>
actual val stdoutLines: Flow<String>
actual val stdoutLines: Flow<String>

Functions

Link copied to clipboard
expect fun closeStdin()

Close stdin handles and free resources so allow process to complete.

actual fun closeStdin()
actual fun closeStdin()
actual fun closeStdin()
actual fun closeStdin()
Link copied to clipboard
suspend fun Process.communicate(input: String = "", timeout: Duration? = null, killTimeout: Duration? = null): CommunicateResult

Communicate with the process and wait for its termination.

Link copied to clipboard
expect fun kill()

Kill the child process.

actual fun kill()
actual fun kill()
actual fun kill()
actual fun kill()
Link copied to clipboard
fun sendSignal(signal: Int)

Send the given signal to the child process.

Link copied to clipboard
expect fun terminate()

Terminate the child process.

actual fun terminate()
actual fun terminate()
actual fun terminate()
actual fun terminate()
Link copied to clipboard
expect suspend fun waitFor(): Int

Wait for the process to terminate.

expect suspend fun waitFor(timeout: Duration): Int?

Wait for the process to terminate, using a timeout.

actual suspend fun waitFor(): Int
actual suspend fun waitFor(timeout: Duration): Int?
actual suspend fun waitFor(): Int
actual suspend fun waitFor(timeout: Duration): Int?
actual suspend fun waitFor(): Int
actual suspend fun waitFor(timeout: Duration): Int?
actual suspend fun waitFor(): Int
actual suspend fun waitFor(timeout: Duration): Int?