TaskResultVoid

Description

abstract class Tinman.Core.Threading.Pooling.TaskResultVoid

Derived from

TaskResultBase abstract

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

Public / Methods

Finish


public abstract method Finish → (1)

throwOnCancel opt : bool = true

Throw a PoolingException if the task has been cancelled?

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).

PoolingException

If the task has thrown an exception.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.