Skip to content

TObjectQueue.Pop

Pop the first element off the queue.

Declaration

Source position: contnrs.pp line 185

public 
function TObjectQueue.Pop : TObject;

Description

Pop removes the first element in the queue, and returns a reference to the instance. If the queue is empty, Nil is returned.

Errors

None.

See also

Name Description
TObjectQueue.Push Push an object on the queue.
TObjectQueue.Peek Look at the first object in the queue.