Gio.Subprocess.prototype.wait_async

function wait_async(cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_subprocess_wait_async()
}
  

Wait for the subprocess to terminate.

This is the asynchronous version of Gio.Subprocess.prototype.wait.

Since 2.40

cancellable

a Gio.Cancellable, or null

callback

a Gio.AsyncReadyCallback to call when the operation is complete