Class AsyncEnumerable
- Namespace
- Prefrontal.Common
- Assembly
- Prefrontal.Core.dll
public static class AsyncEnumerable
- Inheritance
-
AsyncEnumerable
- Inherited Members
Methods
Empty<T>()
Creates an empty IAsyncEnumerable<T>
public static IAsyncEnumerable<T> Empty<T>()
Returns
- IAsyncEnumerable<T>
An empty IAsyncEnumerable<T>.
Type Parameters
T
The type of the value.
Remarks
This method is equivalent to Empty<TResult>().
FromValue<T>(T)
Creates an IAsyncEnumerable<T> from a single value.
public static IAsyncEnumerable<T> FromValue<T>(T value)
Parameters
value
TThe value to create an IAsyncEnumerable<T> from.
Returns
- IAsyncEnumerable<T>
An IAsyncEnumerable<T> that yields the single value.
Type Parameters
T
The type of the value.