Gio.Cancellable.get_current

function get_current(): Gio.Cancellable {
    // Gjs wrapper for g_cancellable_get_current()
}
  

Gets the top cancellable from the stack.

Returns

a Gio.Cancellable from the top of the stack, or null if the stack is empty.