insert_task_async


Description:

public async void insert_task_async (TasksTask task, TasksTasklist tasklist, Cancellable? cancellable)

Inserts task by uploading it to the online tasks service into tasklist tasklist.

this, task and tasklist are all 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 TasksTask representing the inserted task and to check for possible errors.

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

Parameters:

this

a TasksService

task

the TasksTask to insert

tasklist

TasksTasklist to insert into

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when insertion is finished

user_data

data to pass to the callback function