TaskVoid

Description

abstract class Tinman.Core.Threading.Pooling.TaskVoid<TInput>

Derived from

TaskBase abstract
ITaskVoid<TInput>

Abstract base class for ITaskVoid implementations.

Public / Constructors

Wrap


public static method Wrap → (6)

method in : TaskDelegateVoid<TInput>

[not-null]
The task delegate method.

name opt : string = "unnamed-task"

[not-null]
The task name. This is usually the name of the method pointed to by method in, without the Task prefix.

flags opt : TaskFlags = TaskFlags.None

The task flags.

group opt : TaskGroup = null

The default task group.

onCancel opt : TaskCancelDelegate<TInput> = null

The default on cancel delegate.

onException opt : TaskExceptionDelegate<TInput> = null

The default on exception delegate.

returns → ITaskVoid<TInput>

The task object.

Wraps the given task delegate method in a ITask object.

Protected / Constructors

Task​Void


protected constructor TaskVoid → (2)

name in : string

[not-null]
The task name.

flags in : TaskFlags

The task flags.

Creates a new instance of TaskVoid.