hammerspoon2-docs
    Preparing search index...

    Function create

    • Create a new 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

      • OptionalcontinueOnError: boolean

        If true, the timer will continue running even if the callback throws an error

      Returns HSTimer

      A timer object. Call start() to begin the timer.