UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

11 lines (10 loc) 460 B
import { IterableX } from './iterablex'; /** * Creates a new iterable using the specified function implementing the members of AsyncIterable * * @export * @template T The type of the elements returned by the iterable sequence. * @param {(() => Iterator<T>)} fn The function that creates the [Symbol.iterator]() method * @returns {IterableX<T>} A new iterable instance. */ export declare function create<T>(getIterator: () => Iterator<T>): IterableX<T>;