GLib.timeout_source_new_seconds

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

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 scheduling granularity/accuracy of this timeout source will be in seconds.

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

Since 2.14

interval

the timeout interval in seconds

Returns

the newly-created timeout source