Skip to content

TObjectQueue.Peek

Look at the first object in the queue.

Declaration

Source position: contnrs.pp line 186

public 
function TObjectQueue.Peek : TObject;

Description

Peek returns the first object in the queue, without removing it from the queue. If there are no more objects in the queue, Nil is returned.

Errors

None

See also

Name Description
TObjectQueue.Push Push an object on the queue.
TObjectQueue.Pop Pop the first element off the queue.