call_with_id_async


Description:

[ CCode ( finish_name = "jsonrpc_client_call_finish" ) ]
[ 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 [[email protected]_finish] to complete the request and release any memory held.

This function is similar to [[email protected]_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 [[email protected]] describing the identifier used for the method call, or null .

cancellable

A Cancellable or null

callback

Callback to executed upon completion

params

A [[email protected]] of parameters or null

user_data

User data for callback




2022 vala-language.org