Function ensureNonEmptyAsyncIterable
- ensureNonEmptyAsyncIterable<T>(
value: AsyncIterable<T, any, any> | Iterable<T, any, any>,
): Promise<AsyncIterable<T, any, any>>Type Parameters
- T
Parameters
- value: AsyncIterable<T, any, any> | Iterable<T, any, any>
The value to test as an async iterable.
Returns Promise<AsyncIterable<T, any, any>>
A non-empty async iterable, or
undefined.
Ensures that a value is a non-empty async iterable.
Supports both AsyncIterable and (optionally) synchronous Iterable.