Jsonrpc.Client.call_async

### Method

# Jsonrpc Clientcall_async

since: 3.26

#### Declaration [src]

    void
    jsonrpc_client_call_async (
      JsonrpcClient* self,
      const gchar* method,
      GVariant* params,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description [src]

Asynchronously calls `method` with `params` on the remote peer.

Upon completion or failure, `callback` is executed and it should call `jsonrpc_client_call_finish()` to complete the request and release any memory held.

If `params` is floating, the floating reference is consumed.

Available since: 3.26

This method completes asynchronously. Use `jsonrpc_client_call_finish()` inside the `GAsyncReadyCallback` to obtain the result of the operation.

#### Parameters

`method`

  Type: `const gchar*`

  The name of the method to call.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

`params`

  Type: `GVariant`

  A `GVariant` of parameters or `NULL`.

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

`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 callback to executed upon completion.

  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.