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.171 -- Release Build+1fadf9883481af612a0ac41fa386e4d8235ed765
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