# TempJob

> Use a temporary job allocation.

## Definition

* **Type:** Field
* **Namespace:** [Unity.Collections](/engine/6000.3/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
TempJob = 3
```

### Remarks

A slower allocation than [Allocator.Temp](/engine/6000.3/script-reference/unity/collections/allocator/temp.md) but faster than [Allocator.Persistent](/engine/6000.3/script-reference/unity/collections/allocator/persistent.md). Use it for thread-safe allocations within a lifespan of four frames.

**Important**: You must Dispose of this allocation type within four frames, or the console prints a warning, generated from the native code. Most small jobs use this allocation type.
