hammerspoon2-docs
    Preparing search index...

    Function waitWhile

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

      Parameters

      • predicateFn: any

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

      • actionFn: any

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

      • checkInterval: any

        How often, in seconds, to call predicateFn

      Returns void