AsyncEnumerableHelper.AsAsyncEnumerable Method
If task
is already completed, returns the result of the task; otherwise, returns an
instance of IAsyncEnumerable<T> which awaits the task
in
MoveNextAsync() then creates and delegates to an enumerator from the result of the task.
Declaration
public static IAsyncEnumerable<T> AsAsyncEnumerable<T>(this Task<IAsyncEnumerable<T>> task)
Parameters
Returns
Type Parameters
If task
is already completed, returns the result of the task; otherwise, returns an
instance of IAsyncEnumerable<T> which awaits the task
in
MoveNextAsync() then creates and delegates to an enumerator from the result of the task.
Declaration
public static IAsyncEnumerable<T> AsAsyncEnumerable<T>(this ValueTask<IAsyncEnumerable<T>> task)
Parameters
Returns
Type Parameters