Gio.Subprocess.prototype.wait_check_async

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

Combines Gio.Subprocess.prototype.wait_async with GLib.spawn_check_exit_status.

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

Since 2.40

cancellable

a Gio.Cancellable, or null

callback

a Gio.AsyncReadyCallback to call when the operation is complete