getId

fun getId(): <Error class: unknown class>

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 method@GLib.MainContext.find_source_by_id.

You can only call this function while the source is associated to a struct@GLib.MainContext instance; calling this function before method@GLib.Source.attach or after method@GLib.Source.destroy yields undefined behavior. The ID returned is unique within the struct@GLib.MainContext instance passed to method@GLib.Source.attach.

Return

the ID (greater than 0) for the source