KetraTerm
API · DevelopmentAll versions

waitFor

fun waitFor(): Int

Waits for the child process to exit and returns its exit code. This does not wait for output delivery; TerminalConnectorListener.onClosed is the completion boundary for drained output.

Return

exit code of the process.

Throws

if thread waiting is interrupted.