Method WhenAll
WhenAll<T, R>(Seq<T>, Func<T, Task<R>>)
Asynchronously maps a function over a sequence.
Declaration
public static Task<Seq<R>> WhenAll<T, R>(Seq<T> xs, Func<T, Task<R>> f)
Parameters
Type | Name | Description |
---|---|---|
LanguageExt.Seq<T> | xs | The inputs. |
System.Func<T, System.Threading.Tasks.Task<R>> | f | The function to map over the inputs. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LanguageExt.Seq<R>> | The outputs. |
Type Parameters
Name | Description |
---|---|
T | The input type. |
R | The output type. |
WhenAll<T, R>(Seq<T>, Func<T, TryOptionAsync<R>>)
Asynchronously maps a function over a sequence.
Declaration
public static Task<Seq<R>> WhenAll<T, R>(Seq<T> xs, Func<T, TryOptionAsync<R>> f)
Parameters
Type | Name | Description |
---|---|---|
LanguageExt.Seq<T> | xs | The inputs. |
System.Func<T, LanguageExt.TryOptionAsync<R>> | f |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LanguageExt.Seq<R>> | The outputs. |
Type Parameters
Name | Description |
---|---|
T | The input type. |
R | The output type. |