query_comments_async


Description:

public async Feed? query_comments_async (Service service, Query? query, Cancellable? cancellable, owned QueryProgressCallback? progress_callback) throws Error

Retrieves a Feed containing the Comments representing the comments on the Commentable which match the given query.

this, service and query are all reffed when this method is called, so can safely be freed after this method returns.

For more details, see query_comments, which is the synchronous version of this method.

When the operation is finished, callback will be called. You can then call query_comments_async.end to get the results of the operation.

Parameters:

this

a Commentable

service

a Service representing the service with which the object's comments will be manipulated

query

a Query with query parameters, or null

cancellable

optional Cancellable object, or null

progress_callback

a QueryProgressCallback to call when a comment is loaded, or null

callback

a TaskReadyCallback to call when the query is finished

destroy_progress_user_data

a function to call when progress_callback will not be called any more, or null; this function will be called with progress_user_data as a parameter and can be used to free any memory allocated for it

progress_user_data

data to pass to the progress_callback function

user_data

data to pass to the callback function