### Method

# Gio Subprocess communicate_async

since: 2.40

#### Declaration

    void
    g_subprocess_communicate_async (
      GSubprocess* subprocess,
      GBytes* stdin_buf,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description

Asynchronous version of g_subprocess_communicate(). Complete invocation with g_subprocess_communicate_finish().

Available since: 2.40

#### Parameters

`stdin_buf`

  Type: `GBytes`

  Input data, or `NULL`.

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

`cancellable`

  Type: `GCancellable`

  Cancellable.

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

`callback`

  Type: `GAsyncReadyCallback`

  Callback.

  The argument can be `NULL`.

`user_data`

  Type: `gpointer`

  User data.

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