Click or drag to resize

ThreadedCalculationBodyCallbackTParameter Delegate

A delegate representing the body of a multithreaded 'for' loop. The execution of the callback will see a ThreadingPolicy with only one thread unless it is explicitly set inside the callback.

Namespace:  AGI.Foundation.Infrastructure.Threading
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 23.2.417.0 (23.2.417.0)
public delegate void BodyCallback<TParameter>(
	TParameter parameter,
	int i


Type: TParameter
A parameter that is passed to the body of the loop. If this instance implements IThreadAware and IsThreadSafe returns , a copy of the parameter is made for each thread using CopyForAnotherThread.
Type: SystemInt32
The index to evaluate.

Type Parameters

The type of an instance that is passed to the body of the loop.
See Also