Interface PeekableQueue<T>

A Queue that supports peeking the front element.

interface PeekableQueue {
    front(options?): MaybePromise<undefined | T>;
    push(item, options?): unknown;
    shift(options?): MaybePromise<undefined | T>;
}

Type Parameters

  • T

Hierarchy

Implemented by

Methods

Methods

Generated using TypeDoc