call_with_id_async
Description:
[ Version ( since = "3.30" ) ]
public async bool call_with_id_async (string method, Variant? @params, unowned Variant* id, 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.
This function is similar to [method@Client.call_async] except that it allows the caller to get the id of the command which might be useful in systems where you can cancel the operation (such as the Language Server Protocol).
If params is floating, the floating reference is consumed.
Parameters:
| this |
A Client |
| method |
The name of the method to call |
| id |
A location for a [struct@GLib.Variant] describing the identifier used for the method call, or null. |
| cancellable |
A Cancellable or null |
| callback |
Callback to executed upon completion |
| params |
A [struct@GLib.Variant] of parameters or null |
| user_data |
User data for |