A set of extension methods that affect System.Threading.Tasks.Task`1
└── Base2art.Threading.Tasks.ObjectThenner<TColl>
* └── Base2art.Threading.Tasks.TaskThenner
* * └── System.Object
Returns the first element of a sequence in a task, or a default value if the sequence contains no elements in the task.
Returns: System.Threading.Tasks.Task<TElement>
=> A Task with a single element or null.
Maps items in Task<IEnumerable<T>> to Task<IEnumerable<TResult>>.
Parameter | Type | Info |
---|---|---|
map | System.Func<TElement, TResult> | The mapping function. |
Returns: System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TResult>>
=> A mapped System.Collections.Generic.IEnumerable`1 in a task.
Maps items in Task<IEnumerable<T>> to Task<IEnumerable<TResult>>.
Parameter | Type | Info |
---|---|---|
map | System.Func<TElement, System.Threading.Tasks.Task<TResult>> | The mapping function. |
Returns: System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TResult>>
=> A mapped System.Collections.Generic.IEnumerable`1 in a task.
Converts a Task<IEnumerable<T>> to Task<T[]>.
Returns: System.Threading.Tasks.Task<TElement[]>
=> A Task with an array of elements
Converts a Task<IEnumerable<T>> to Task<List<T>>.
Returns: System.Threading.Tasks.Task<System.Collections.Generic.List<TElement>>
=> A Task with a list of elements
Filters items in Task<IEnumerable<T>> to Task<IEnumerable<TResult>>.
Parameter | Type | Info |
---|---|---|
filter | System.Func<TElement, System.Boolean> | The filtering function. |
Returns: System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>>
=> A mapped System.Collections.Generic.IEnumerable`1 in a task.
Filters items in Task<IEnumerable<T>> to Task<IEnumerable<TResult>>.
Parameter | Type | Info |
---|---|---|
filter | System.Func<TElement, System.Threading.Tasks.Task<System.Boolean>> | The filtering function. |
Returns: System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>>
=> A mapped System.Collections.Generic.IEnumerable`1 in a task.
Return<TResult>(System.Func<TColl, TResult>)
Return<TResult>(System.Func<TColl, System.Threading.Tasks.Task<TResult>>)
Coalesce(TColl)
Coalesce(System.Func<TColl>)
Coalesce(System.Func<System.Threading.Tasks.Task<TColl>>)
Execute(System.Action<TColl>)
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