# Yahoo! UI Library

### queue 3.0.0b1

Yahoo! UI Library > queue
Search:
Filters Show Private Show Protected Show Deprecated

### Module: queue

The Queue module adds a common data structure for FIFO operations. In its simplest form, it is little more than an array wrapper. Additional submodules introduce more functionality such as promotion and removal of queued items.

An AsyncQueue class is provided in the queue-run submodule. This class affords a mechanism to do complex sequential and iterative callback execution across configured timeouts.

This module contains the following classes:

- AsyncQueue
- Queue

#### Submodules:

`queue-run`

  Adds a new class AsyncQueue that is restricted to function callbacks, but includes a host of additional features, including events, callback iterations, and a run() method that can execute queued callbacks in order, even across configured timeouts.

`queue-promote`
  Adds methods promote, remove, and indexOf to Queue instances.
`queue-base`
  A simple FIFO queue. Items are added to the Queue with add(1..n items) and removed using next().

Copyright © 2009 Yahoo! Inc. All rights reserved.