# TryDequeue(out T)

> Removes and outputs the element at the front of this queue.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## TryDequeue(T)

```csharp
public bool TryDequeue(out T item)
```

### Parameters

**** (T): Outputs the removed element.

### Returns

| Type                                                          | Description                       |
| ------------------------------------------------------------- | --------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if this queue was not empty. |
