crew_queue {crew}R Documentation

Create a crew queue object.

Description

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.

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.

Value

A queue object.

See Also

Other queue: crew_class_queue


[Package crew version 1.2.1 Index]