GLib.timeout_source_new

function timeout_source_new(interval: Number(guint)): GLib.Source {
    // Gjs wrapper for g_timeout_source_new()
}
  

Creates a new timeout source.

The source will not initially be associated with any GLib.MainContext and must be added to one with GLib.Source.prototype.attach before it will be executed.

The interval given is in terms of monotonic time, not wall clock time. See GLib.get_monotonic_time.

interval

the timeout interval in milliseconds.

Returns

the newly-created timeout source