hammerspoon2-docs
    Preparing search index...

    Function waitUntil

    • Wait to call a function/lambda until a given predicate function/lambda returns true

      Parameters

      • predicateFn: any

        A function/lambda to test if the actionFn should be called. Return True to call the actionFn, False to continue waiting

      • actionFn: any

        A function/lambda to call when the predicateFn returns true. This will only be called once and then the timer will stop.

      • checkInterval: any

        How often, in seconds, to call predicateFn

      Returns void