Gio.Subprocess.wait_async

### Method

# Gio Subprocesswait_async

since: 2.40

#### Declaration

    void
    g_subprocess_wait_async (
      GSubprocess* subprocess,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description

Wait for the subprocess to terminate.

This is the asynchronous version of g_subprocess_wait().

Available since: 2.40

#### Parameters

`cancellable`

  Type: `GCancellable`

  A `GCancellable`, or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`callback`

  Type: `GAsyncReadyCallback`

  A `GAsyncReadyCallback` to call when the operation is complete.

  The argument can be `NULL`.

`user_data`

  Type: `gpointer`

  User_data for `callback`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.