Skip to contents

Create an R6 crew queue object.

Usage

crew_queue(data = character(0L), step = 1000L)

Arguments

data

Character vector of initial queue data.

step

Positive integer with the number of elements to extend the queue on each call to the extend() method.

Value

A queue object.

Details

A crew queue is a classical first-in-first-out data structure that extends itself in chunks (of size step) to avoid overhead. crew uses queues to efficiently track the names of resolved tasks and backlogged tasks.

See also

Other queue: crew_class_queue