Function

GLib-2.0GLibtimeout_source_new_secondsSince 2.14

  • 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.attach before it will be executed.

    The scheduling granularity/accuracy of this timeout source will be in seconds.

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

    Parameters

    • interval: number

      the timeout interval in seconds

    Returns GLib.Source

    the newly-created timeout source

    2.14