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.177 -- Release Build+e62fbba880e2d0fda6fd1e642bce443e3d10a811
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