# Sandbox.EditorSystemPublic.ForEachAsync

```csharp
System.Threading.Tasks.Task ForEachAsync(IEnumerable<T> list, string title, System.Func`3<T,System.Threading.CancellationToken,System.Threading.Tasks.Task> worker, System.Threading.CancellationToken cancel = null, bool modal = False)
```

### Parameters

- `list` (`IEnumerable<T>`)
- `title` (`string`)
- `worker` (`System.Func`3<T,System.Threading.CancellationToken,System.Threading.Tasks.Task>`)
- `cancel` (`System.Threading.CancellationToken`), default `null`
- `modal` (`bool`), default `False`

### Returns

`System.Threading.Tasks.Task`

Declared in [Sandbox.EditorSystemPublic](/api/Sandbox.EditorSystemPublic).
Assembly: `Sandbox.Tools`.
