---
library: "bootstrap"
slug: "Queue"
name: "Queue"
ref: "Queue#5689"
hash: "sema:Queue#mh:SHA-256:5689d2db87dd8752019da54910f7be96929ff84baf09cdadd2c6826b01ea5420"
type: "Data Structures"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Queue"
---

# Queue

Ordered container with FIFO/LIFO/priority discipline and explicit dequeue semantics

Infrastructure · Data Structures

## Mechanism

A linear container holding [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md)s or [Message](https://semahash.org/vocabularies/bootstrap/patterns/Message.md)s under an explicit ordering discipline (FIFO, LIFO, or Priority). Consumers dequeue one element at a time; producers enqueue at the discipline-dictated position. Distinct from a [Stream](https://semahash.org/vocabularies/bootstrap/patterns/Stream.md) (continuous, unbounded, with no single consumer) and from a plain list (no consumer semantics).

## Where this came from

—

## Builds on

- [Message](https://semahash.org/vocabularies/bootstrap/patterns/Message.md) (references)
- [Stream](https://semahash.org/vocabularies/bootstrap/patterns/Stream.md) (references)
- [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) (references)

## Used by

- [BeamSearch](https://semahash.org/vocabularies/bootstrap/patterns/BeamSearch.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Queue#5689
- Hash: sema:Queue#mh:SHA-256:5689d2db87dd8752019da54910f7be96929ff84baf09cdadd2c6826b01ea5420

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Queue
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Queue.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
