run_async


Description:

public async bool run_async (Cancellable? cancellable) throws Error

Run the BatchOperation asynchronously.

This will send all the operations in the batch operation to the server, and call their respective callbacks asynchronously (i.e. in idle functions in the main thread, usually after run_async has returned) as the server returns results for each operation. this is reffed when this function is called, so can safely be unreffed after this function returns.

For more details, see run, which is the synchronous version of this function.

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

Parameters:

this

a BatchOperation

cancellable

a Cancellable, or null

callback

a TaskReadyCallback to call when the batch operation is finished, or null

user_data

data to pass to the callback function