wait | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function wait

    • Wait for a condition to become truthy

      Type Parameters

      • T

      Parameters

      • waitfor: PromiseLike<T> | (() => T | PromiseLike<T>)

        A function/promiose that should resolve to true for the wait to finish

      • Optionaloptions: WaitOptions<T>

      Returns WaitRetVal<T>

      The value that the waitfor function last resolved to