Gio.Task.prototype.set_task_data

function set_task_data(task_data: void, task_data_destroy: GLib.DestroyNotify): void {
    // Gjs wrapper for g_task_set_task_data()
}
  

Sets task's task data (freeing the existing task data, if any).

Since 2.36

task_data

task-specific data

task_data_destroy

GLib.DestroyNotify for task_data