Preparing search index...
The search index is not available
@shutterstock/p-map-iterable
@shutterstock/p-map-iterable
Queue
Class Queue<T>
A simple queue implementation.
Type Parameters
T
Hierarchy
Queue
Index
Constructors
constructor
Properties
_head
_queue
_tail
Accessors
length
Methods
dequeue
enqueue
Constructors
constructor
new
Queue
<
T
>
(
)
:
Queue
<
T
>
Type Parameters
T
Returns
Queue
<
T
>
Properties
Private
_head
_head
:
number
= 0
Private
_queue
_queue
:
{
[
index
:
number
]
:
T
;
}
= {}
Type declaration
[
index
:
number
]:
T
Private
_tail
_tail
:
number
= 0
Accessors
length
get
length
(
)
:
number
Returns
number
Methods
dequeue
dequeue
(
)
:
undefined
|
T
Returns
undefined
|
T
enqueue
enqueue
(
element
)
:
void
Parameters
element
:
T
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_head
_queue
_tail
length
dequeue
enqueue
@shutterstock/p-
map-
iterable
Blocking
Queue
Iterable
Mapper
Iterable
Queue
Iterable
Queue
Mapper
Iterable
Queue
Mapper
Simple
Queue
Blocking
Queue
Options
Iterable
Mapper
Options
Iterable
Queue
Mapper
Options
Iterable
Queue
Options
Mapper
Generated using
TypeDoc
A simple queue implementation.