> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor/ks.reactor.ksatomichashset-1/ks.reactor.ksatomichashset-1.foreachcallback.md).

# Delegate ksAtomicHashSet\<T>.ForEachCallback

Namespace: [KS.Reactor](/reactor/api-reference/ks.reactor.md)\
Assembly: KSCommon.dll

Callback used when iterating all elements using [ForEach](/reactor/api-reference/ks.reactor.md#KS_Reactor_ksAtomicHashSet_601_ForEach_KS_Reactor_ksAtomicHashSet_7b_600_7d_ForEachCallback_)

```csharp
public delegate bool ksAtomicHashSet<T>.ForEachCallback(T element)
```

#### Parameters

`element` T

Element being iterated.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

True if the iteration should continue after invoking this callback.
