Class: Base2art.Threading.Tasks.TaskThenner

A set of extension methods that affect System.Threading.Tasks.Task`1

Inherits

└── System.Object

Methods

Execute(System.Func<System.Threading.Tasks.Task>)

After the initial task completes executes a new task via the resultProducer.

Parameter Type Info
resultProducer System.Func<System.Threading.Tasks.Task> The next task producer.

Returns: System.Threading.Tasks.Task
=> The task.


Execute(System.Action)

After the initial task completes executes a function via the nextAction.

Parameter Type Info
nextAction System.Action The next task producer.

Returns: System.Threading.Tasks.Task
=> The task.


Return<TResult>(TResult)

After the initial task completes returns a new object.

Parameter Type Info
result TResult The result to return.

Returns: System.Threading.Tasks.Task<TResult>
=> The return value.


Return<TResult>(System.Func<TResult>)

After the initial task completes returns a new object via the resultProducer.

Parameter Type Info
resultProducer System.Func<TResult> The mapping function.

Returns: System.Threading.Tasks.Task<TResult>
=> The return value.


Return<TResult>(System.Func<System.Threading.Tasks.Task<TResult>>)

After the initial task completes returns a new object via the resultProducer.

Parameter Type Info
resultProducer System.Func<System.Threading.Tasks.Task<TResult>> The mapping function.

Returns: System.Threading.Tasks.Task<TResult>
=> The return value.

Inherited Methods

  • ToString

  • Equals(System.Object)

  • Equals(System.Object, System.Object)

  • ReferenceEquals(System.Object, System.Object)

  • GetHashCode

  • GetType