# Run

> Runs the job immediately on the current thread.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## Run\<T>(T)

Runs the job immediately on the current thread.

```csharp
public static void Run<T>(this T jobData) where T : struct, IJobEntity
```

### Parameters

**** (T): An [IJobEntity](/engine/7000.0/script-reference/unity/entities/ijobentity.md) instance.

## Run\<T>(T, EntityQuery)

Runs the job immediately on the current thread.

```csharp
public static void Run<T>(this T jobData, EntityQuery query) where T : struct, IJobEntity
```

### Parameters

**** (T): An [IJobEntity](/engine/7000.0/script-reference/unity/entities/ijobentity.md) instance.**** (\[EntityQuery]\(/engine/7000.0/script-reference/unity/entities/entityquery)): The query selecting chunks with the necessary components.
