Gemstone Threading Library
Show/Hide TOC

# ProcessQueue T TryTake(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.162 -- Release Build+7fb59487e2752bb14cc6b30d8b8d9d6a88cf222f
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