GLib.Source.set_name_by_id

function set_name_by_id(tag: Number(guint), name: String): void {
    // Gjs wrapper for g_source_set_name_by_id()
}
  

Sets the name of a source using its ID.

This is a convenience utility to set source names from the return value of GLib.idle_add, GLib.timeout_add, etc.

Since 2.26

tag

a GLib.Source ID

name

debug name for the source