Class MaybeLinqExtensionsValueTaskLeftAsync
- Namespace
- Trellis
- Assembly
- Trellis.Core.dll
Async LINQ SelectMany overload where the source is a ValueTask<TResult> of Maybe<T>
and the collection selector is synchronous.
public static class MaybeLinqExtensionsValueTaskLeftAsync
- Inheritance
-
MaybeLinqExtensionsValueTaskLeftAsync
- Inherited Members
Methods
SelectMany<TSource, TCollection, TResult>(ValueTask<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, ValueTask variant).
public static ValueTask<Maybe<TResult>> SelectMany<TSource, TCollection, TResult>(this ValueTask<Maybe<TSource>> source, Func<TSource, Maybe<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> resultSelector) where TSource : notnull where TCollection : notnull where TResult : notnull
Parameters
sourceValueTask<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
- ValueTask<Maybe<TResult>>
A value task producing the combined Maybe, or
Noneif any step has no value.
Type Parameters
TSourceType of the source value.
TCollectionType of the intermediate collection value.
TResultType of the final projected value.