Method Defer
Defer<TResult>(Func<IAsyncEnumerable<TResult>>)
Creates an enumerable sequence based on an enumerable factory function.
Declaration
public static IAsyncEnumerable<TResult> Defer<TResult>(Func<IAsyncEnumerable<TResult>> enumerableFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<IAsyncEnumerable<TResult>> | enumerableFactory | Enumerable factory function. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<TResult> | Sequence that will invoke the enumerable factory upon iteration. |
Type Parameters
| Name | Description |
|---|---|
| TResult | Result sequence element type. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|