GLib.Source.prototype.get_id
function get_id(): Number(guint) { // Gjs wrapper for g_source_get_id() }
Returns the numeric ID for a particular source. The ID of a source is a positive integer which is unique within a particular main loop context. The reverse mapping from ID to source is done by GLib.MainContext.prototype.find_source_by_id.
- Returns
the ID (greater than 0) for the source