hammerspoon2-docs
    Preparing search index...

    Function doEvery

    • Create and start a repeating timer

      Parameters

      • interval: number

        The interval in seconds at which the timer should fire

      • callback: () => void

        A JavaScript function to call when the timer fires

      Returns HSTimer

      A timer object (already started)

      The timer keeps firing until stop() is called, even if you don't keep a reference to it.