Gio.Subprocess.prototype.wait_finish

function wait_finish(result: Gio.AsyncResult): Boolean {
    // Gjs wrapper for g_subprocess_wait_finish()
}
  

Collects the result of a previous call to Gio.Subprocess.prototype.wait_async.

Since 2.40

result

the Gio.AsyncResult passed to your Gio.AsyncReadyCallback

Returns

true if successful, or false with @error set