Flush Queue

Removes all elements from a queue and returns the elements as an array.

Note This node does not release the queue reference.
1378

Inputs/Outputs

datatype_icon

queue

A reference to a queue.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

queue out

Reference to the queue.

datatype_icon

remaining elements

An array of elements removed from the queue.

The first element in the array is the element from the front of the queue and the last element in the array is the element from the back of the queue.

The data type of this output changes to match the data type of the queue elements.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Programming Patterns

Use Release Queue to release a queue reference from memory.