Class MaybeLinqExtensionsTaskRightAsync
- Namespace
- Trellis
- Assembly
- Trellis.Core.dll
Async LINQ SelectMany overload where the source is a synchronous Maybe<T>
and the collection selector returns a Task<TResult> of Maybe<T>.
public static class MaybeLinqExtensionsTaskRightAsync
- Inheritance
-
MaybeLinqExtensionsTaskRightAsync
- Inherited Members
Methods
SelectMany<TSource, TCollection, TResult>(Maybe<TSource>, Func<TSource, Task<Maybe<TCollection>>>, Func<TSource, TCollection, TResult>)
Projects a synchronous Maybe<T> through an async collection selector
(LINQ SelectMany: sync source / async continuation).
public static Task<Maybe<TResult>> SelectMany<TSource, TCollection, TResult>(this Maybe<TSource> source, Func<TSource, Task<Maybe<TCollection>>> collectionSelector, Func<TSource, TCollection, TResult> resultSelector) where TSource : notnull where TCollection : notnull where TResult : notnull
Parameters
sourceMaybe<TSource>The synchronous source Maybe.
collectionSelectorFunc<TSource, Task<Maybe<TCollection>>>An async 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.