• Block the execution flow till a promise Predicate becomes true.

    Parameters

    • predicate: (() => Promise<boolean>)
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • seconds: number = 3

    Returns Promise<void>