acquiescence - v0.1.7
    Preparing search index...

    Type Alias Waiter<T>

    Waiter interface for waiting for a condition to be met.

    type Waiter<T> = {
        waitForCondition(): Promise<T>;
        cancel(): void;
    }

    Type Parameters

    • T

      The type of the result of the condition.

    Implemented by

    Index

    Methods

    • Waits for a condition to be met.

      Returns Promise<T>

      A promise that resolves to the result of the condition.

    • Cancels the wait.

      Returns void