Gemstone Threading Library
Show/Hide TOC

# ProcessQueueTTryTake(T) Method

Attempts to remove and return all objects from the ProcessQueueT.

## Definition

Namespace: Gemstone.Threading.Collections
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.156 -- Release Build+d9c3c9ff423cb81bc351c70c72797c5bc686ec2e
C#
View Source Request Example

    public bool TryTake(
    	out T[] items
    )

VB
View Source Request Example

    Public Function TryTake (
    	<OutAttribute> ByRef items As T()
    ) As Boolean

C++
View Source Request Example

    public:
    bool TryTake(
    	[OutAttribute] array<T>^% items
    )

JavaScript
View Source Request Example

    function TryTake(items);

#### Parameters

items T
  When this method returns, if any objects were removed and returned successfully, item array contains the removed objects. If no object was available to be removed, the value is null.

#### Return Value

Boolean
true if any objects were removed and returned successfully; otherwise, false.

## See Also

#### Reference

ProcessQueueT Class
TryTake Overload
Gemstone.Threading.Collections Namespace