# Dispose

> Releases all resources (memory and safety handles).

## Definition

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

## Dispose()

Releases all resources (memory and safety handles).

```csharp
public void Dispose()
```

## Dispose(JobHandle)

Creates and schedules a job that will dispose this array.

```csharp
public JobHandle Dispose(JobHandle inputDeps)
```

### Parameters

**** (\[JobHandle]\(/engine/6000.7/script-reference/unity/jobs/jobhandle)): The handle of a job which the new job will depend upon.

### Returns

| Type                                                                 | Description                                                                               |
| -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [JobHandle](/engine/6000.7/script-reference/unity/jobs/jobhandle.md) | The handle of a new job that will dispose this array. The new job depends upon inputDeps. |
