wait


Description:

public bool wait (Cancellable? cancellable = null) throws Error

Synchronously wait for the subprocess to terminate.

After the process terminates you can query its exit status with functions such as get_if_exited and get_exit_status.

This function does not fail in the case of the subprocess having abnormal termination. See wait_check for that.

Cancelling cancellable doesn't kill the subprocess. Call force_exit if it is desirable.

Parameters:

this

a Subprocess

cancellable

a Cancellable

Returns:

true on success, false if cancellable was cancelled




2022 vala-language.org