Method

JsonrpcClientclose

Declaration [src]

gboolean
jsonrpc_client_close (
  JsonrpcClient* self,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Closes the underlying streams and cancels any inflight operations of the JsonrpcClient.

This is important to call when you are done with the client so that any outstanding operations that have caused self to hold additional references are cancelled.

Failure to call this method results in a leak of JsonrpcClient.

Available since:3.26

Parameters

cancellable GCancellable
  No description available.
 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if successful; otherwise FALSE and error is set.