[Overview][Types][Classes][Index] Reference for unit 'LazCollections' (#lazutils)

TLazThreadedQueue.PopItem

Pops the next item from the queue.

Declaration

Source position: lazcollections.pas line 111

public function TLazThreadedQueue.PopItem(

  out AItem: T

):TWaitResult;

Arguments

AItem

  

Item removed from the queue.

Function result

Contains the status for the dequeue request.

Description

PopItem is a TWaitResult function used remove the next item available in the thread-safe queue. PopItem calls the PopItemTimeout method using the value in the PopTimeout property as an argument.

AItem is an output variable that is updated with the item removed from the queue in the method.

The return value contains a TWaitResult enumeration value that indicates the status for the dequeue request. See TWaitResult for more information about enumeration values and their meanings.

See also

TLazThreadedQueue.PopItemTimeout

  

Pops an item off the queue with a timeout value.

TWaitResult


Version 4.0 Generated 2025-05-03 Home