abstract class Tinman.Core.Threading.Pooling.TaskResult<TOutput>

Derived from

TaskResultBase abstract

Abstract base class for results of tasks with an output value.

Public / Methods


public abstract method Finish → (1)

throwOnCancel opt : bool = true

Throw a PoolingException if the task has been cancelled?

returns → TOutput

The resulting data object.

Waits for the task to finish.

For properly ending a task, the Finish method must be called exactly once, because after the call the TaskResultVoid object is recycled and might be used again for another task.

If the task has already finished, the method immediately returns (in case of success) or throws a PoolingException (in case of failure).


If the task has thrown an exception.