TaskExceptionDelegate

Description

delegate Tinman.Core.Threading.Pooling.TaskExceptionDelegate<TInput in>

input : TInput

The task input data object.

error : TinmanError

The error description object.

Execution of a task has failed.

Calling the TaskResult.Finish resp. TaskResultVoid.Finish methods will always throw a PoolingException when the task execution has failed. In addition to that behaviour, an TaskExceptionDelegate can be registered that will be called from the task pool thread immediately after the task has failed.