• This performs polling while a predicate returns true.

    Type Parameters

    • T = unknown

    Parameters

    • predicate: (() => boolean | PromiseLike<boolean>)

      an async function that if false will skip the callback, but will still poll.

        • (): boolean | PromiseLike<boolean>
        • Returns boolean | PromiseLike<boolean>

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

      the async function to call.

        • (): T | PromiseLike<T>
        • Returns T | PromiseLike<T>

    • options: Partial<PollingOptions> = {}

      extra options for polling

    Returns void

Generated using TypeDoc