@aptos-labs/ts-sdk - v7.4.0
    Preparing search index...

    Class AsyncQueue<T>

    Type Parameters

    • T
    Index
    • Adds an item to the queue. If there are pending dequeued promises, it resolves the oldest promise with the enqueued item immediately; otherwise, it adds the item to the queue.

      Parameters

      • item: T

        The item to be added to the queue.

      Returns void

    queue: T[] = []