Gtk.Widget.prototype.in_destruction

function in_destruction():Boolean {
    // Gjs wrapper for gtk_widget_in_destruction()
}

Returns whether the widget is currently being destroyed. This information can sometimes be used to avoid doing unnecessary work.

Returns

true if widget is being destroyed