UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

16 lines (15 loc) 699 B
import { AsyncIterableX } from './asynciterablex'; export declare class OfAsyncIterable<TSource> extends AsyncIterableX<TSource> { private _args; constructor(args: TSource[]); [Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator<TSource, void, unknown>; } /** * Creates an async-iterable from the specified elements. * * @export * @template TSource The type of the elements to create an async-iterable sequence. * @param {...TSource[]} args The elements to turn into an async-iterable sequence. * @returns {AsyncIterableX<TSource>} The async-iterable sequence created from the elements. */ export declare function of<TSource>(...args: TSource[]): AsyncIterableX<TSource>;