hammerspoon2-docs
    Preparing search index...

    Function doAfter

    • Create and start a one-shot timer

      Parameters

      • seconds: number

        Number of seconds to wait before firing

      • callback: () => void

        A JavaScript function to call when the timer fires

      Returns HSTimer

      A timer object (already started)

      The timer fires even if you don't keep a reference to it. Keep one if you might want to stop it.