hammerspoon2-docs
    Preparing search index...

    Function doWhile

    • Repeat a function/lambda while a given predicate function/lambda returns true

      Parameters

      • predicateFn: any

        A function/lambda to test if the timer should continue. Return True to continue the timer, False to end it

      • actionFn: any

        A function/lambda to call while the predicateFn returns true

      • checkInterval: any

        How often, in seconds, to call actionFn

      Returns void