Interface Joiner<T>

interface Joiner<T> {
    isPending(): boolean;
    join(action: (() => Promise<T>)): Promise<T>;
}

Type Parameters

  • T

    The result of an action.

Methods

Methods

  • Returns true if joiner currently has a pending action, or false otherwise.

    Returns boolean

  • Invokes the action. If there's a pending action than this call would return its promise, and the given action callback won't be called.

    Parameters

    Returns Promise<T>