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 MainContext.findSourceById.
You can only call this function while the source is associated to a glib.MainContext instance; calling this function before Source.attach or after Source.destroy yields undefined behavior. The ID returned is unique within the glib.MainContext instance passed to Source.attach.
the ID (greater than 0) for the source
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 MainContext.findSourceById.
You can only call this function while the source is associated to a glib.MainContext instance; calling this function before Source.attach or after Source.destroy yields undefined behavior. The ID returned is unique within the glib.MainContext instance passed to Source.attach.