# Dispose(JobHandle)

> Creates and schedules a job that will release all resources (memory and safety handles) of this collection.

## Definition

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

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

### Parameters

**** (\[JobHandle]\(/engine/6000.7/script-reference/unity/jobs/jobhandle)): A job handle which the newly scheduled 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 release all resources (memory and safety handles) of this collection. |
