call_async


Description:

public async bool call_async (string method, Variant? @params, Cancellable? cancellable, out Variant? return_value) throws Error

Asynchronously calls method with params on the remote peer.

Upon completion or failure, callback is executed and it should call [method@Client.call_finish] to complete the request and release any memory held.

If params is floating, the floating reference is consumed.

Parameters:

this

A Client

method

The name of the method to call

cancellable

A Cancellable or null

callback

a callback to executed upon completion

params

A [struct@GLib.Variant] of parameters or null

user_data

user data for callback