Gemstone Threading Library
Show/Hide TOC

# DoubleBufferedQueue T TryClear Method

Attempts to enqueue a collection of items into the double-buffered queue.

## Definition

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

    public bool TryClear()

VB
View Source Request Example

    Public Function TryClear As Boolean

C++
View Source Request Example

    public:
    bool TryClear()

JavaScript
View Source Request Example

    function TryClear();

#### Return Value

Boolean
True if the items were successfully enqueued; false otherwise.

## See Also

#### Reference

DoubleBufferedQueueT Class
Gemstone.Threading.Collections Namespace