GLib.MainContext.prototype.find_source_by_id

function find_source_by_id(source_id: Number(guint)): GLib.Source {
    // Gjs wrapper for g_main_context_find_source_by_id()
}
  

Finds a GLib.Source given a pair of context and ID.

source_id

the source ID, as returned by GLib.Source.prototype.get_id.

Returns

the GLib.Source if found, otherwise, null