waitFor

expect suspend fun waitFor(): Int

Wait for the process to terminate.

Return

exit code


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

Wait for the process to terminate, using a timeout.

Return

exit code or null if the process is still running

Parameters

timeout

wait timeout duration

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?