insert_tasklist_async


Description:

public async void insert_tasklist_async (TasksTasklist tasklist, Cancellable? cancellable)

Inserts tasklist by uploading it to the online tasks service.

this and tasklist are both reffed when this function is called, so can safely be unreffed after this function returns.

callback should call insert_entry_async.end to obtain a TasksTasklist representing the inserted tasklist and to check for possible errors.

For more details, see insert_tasklist, which is the synchronous version of this function, and insert_entry_async, which is the base asynchronous insertion function.

Parameters:

this

a TasksService

tasklist

TasksTasklist to insert

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when insertion is finished

user_data

data to pass to the callback function