Gio.Application.prototype.mark_busy

function mark_busy(): void {
    // Gjs wrapper for g_application_mark_busy()
}
  

Increases the busy count of application.

Use this function to indicate that the application is busy, for instance while a long running operation is pending.

The busy state will be exposed to other processes, so a session shell will use that information to indicate the state to the user (e.g. with a spinner).

To cancel the busy indication, use Gio.Application.prototype.unmark_busy.

Since 2.38