Gio.Cancellable.new

function new(): Gio.Cancellable {
    // Gjs wrapper for g_cancellable_new()
}
  

Creates a new Gio.Cancellable object.

Applications that want to start one or more operations that should be cancellable should create a Gio.Cancellable and pass it to the operations.

One Gio.Cancellable can be used in multiple consecutive operations or in multiple concurrent operations.

Returns

a Gio.Cancellable.