• Test to see if a promise is fulfilled.

    Type Parameters

    • T

    Parameters

    • p: PromiseLike<T>
    • delay: number = 0

      optional delay in milliseconds before checking

    Returns Promise<boolean>

    true if the promise is fulfilled (either resolved or rejected), and false if the promise is still pending.