Class MaybeLinqExtensionsTaskLeftAsync
- Namespace
- Trellis
- Assembly
- Trellis.Core.dll
Async LINQ SelectMany overload where the source is a Task<TResult> of Maybe<T>
and the collection selector is synchronous.
public static class MaybeLinqExtensionsTaskLeftAsync
- Inheritance
-
MaybeLinqExtensionsTaskLeftAsync
- Inherited Members
Methods
SelectMany<TSource, TCollection, TResult>(Task<Maybe<TSource>>, Func<TSource, Maybe<TCollection>>, Func<TSource, TCollection, TResult>)
Projects an awaited Maybe<T> through a synchronous collection selector
(LINQ SelectMany: async source / sync continuation).
public static Task<Maybe<TResult>> SelectMany<TSource, TCollection, TResult>(this Task<Maybe<TSource>> source, Func<TSource, Maybe<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> resultSelector) where TSource : notnull where TCollection : notnull where TResult : notnull
Parameters
sourceTask<Maybe<TSource>>The asynchronous source Maybe.
collectionSelectorFunc<TSource, Maybe<TCollection>>A synchronous function returning the intermediate Maybe.
resultSelectorFunc<TSource, TCollection, TResult>A synchronous function combining the source and intermediate values.
Returns
Type Parameters
TSourceType of the source value.
TCollectionType of the intermediate collection value.
TResultType of the final projected value.