Method Evaluate
View SourceEvaluate<T>(IEnumerable<Func<Task<T>>>)
Returns a sequence containing the values resulting from invoking (in order) each function in the source sequence of functions.
Declaration
public static IAsyncEnumerable<T> Evaluate<T>(this IEnumerable<Func<Task<T>>> functions)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Func<Task<T>>> | functions | The functions to evaluate. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<T> | A sequence with results from invoking |
Type Parameters
Name | Description |
---|---|
T | The type of the object returned by the functions. |
Remarks
This operator uses deferred execution and streams the results. If the resulting sequence is enumerated multiple times, the functions will be evaluated multiple times too.
Exceptions
Type | Condition |
---|---|
ArgumentNullException | When |
Evaluate<T>(IAsyncEnumerable<Func<Task<T>>>)
Returns a sequence containing the values resulting from invoking (in order) each function in the source sequence of functions.
Declaration
public static IAsyncEnumerable<T> Evaluate<T>(this IAsyncEnumerable<Func<Task<T>>> functions)
Parameters
Type | Name | Description |
---|---|---|
IAsyncEnumerable<Func<Task<T>>> | functions | The functions to evaluate. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<T> | A sequence with results from invoking |
Type Parameters
Name | Description |
---|---|
T | The type of the object returned by the functions. |
Remarks
This operator uses deferred execution and streams the results. If the resulting sequence is enumerated multiple times, the functions will be evaluated multiple times too.
Exceptions
Type | Condition |
---|---|
ArgumentNullException | When |