Gio.Task.prototype.get_cancellable

function get_cancellable(): Gio.Cancellable {
    // Gjs wrapper for g_task_get_cancellable()
}
  

Gets task's Gio.Cancellable

Since 2.36

Returns

task's Gio.Cancellable