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.159 -- Release Build+94b67ea5187267d7edb4458b634b6580ba7dbb78
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