Class: Base2art.Threading.Tasks.ObjectThenner<TIn>

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

Inherits

└── Base2art.Threading.Tasks.TaskThenner
* └── System.Object

Methods

Coalesce(TIn)

Maps the task return object to a new object.

Parameter Type Info
result TIn The value to return if the task returns null.

Returns: System.Threading.Tasks.Task<TIn>
=> A non null value.


Coalesce(System.Func<TIn>)

Maps the task return object to a new object.

Parameter Type Info
map System.Func<TIn> A function that returns a value if the task returns null.

Returns: System.Threading.Tasks.Task<TIn>
=> A non null value.


Coalesce(System.Func<System.Threading.Tasks.Task<TIn>>)

Maps the task return object to a new object.

Parameter Type Info
map System.Func<System.Threading.Tasks.Task<TIn>> A function that returns a value if the task returns null.

Returns: System.Threading.Tasks.Task<TIn>
=> A non null value.


Execute(System.Action<TIn>)

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

Parameter Type Info
nextAction System.Action<TIn> The next task producer.

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


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

Maps the task return object to a new object via the map.

Parameter Type Info
map System.Func<TIn, TResult> The mapping function.

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


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

Maps the task return object to a new object via the map.

Parameter Type Info
map System.Func<TIn, System.Threading.Tasks.Task<TResult>> The mapping function.

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

Inherited Methods

  • Return<TResult>(TResult)

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

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

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

  • Execute(System.Action)

  • ToString

  • Equals(System.Object)

  • Equals(System.Object, System.Object)

  • ReferenceEquals(System.Object, System.Object)

  • GetHashCode

  • GetType