# Sandbox.Utility.Parallel.ForEach

## Overload 1

```csharp
static bool ForEach(IEnumerable<T> source, System.Action<T> body)
```

### Parameters

- `source` (`IEnumerable<T>`)
- `body` (`System.Action<T>`)

### Returns

`bool`

## Overload 2

```csharp
static bool ForEach(IEnumerable<T> source, System.Threading.CancellationToken token, System.Action<T> body)
```

### Parameters

- `source` (`IEnumerable<T>`)
- `token` (`System.Threading.CancellationToken`)
- `body` (`System.Action<T>`)

### Returns

`bool`

Declared in [Sandbox.Utility.Parallel](/api/Sandbox.Utility.Parallel).
Assembly: `Sandbox.Engine`.
