@reactivex/ix-es5-esm
Version:
The Interactive Extensions for JavaScript
10 lines (9 loc) • 659 B
TypeScript
import { IterableX } from './iterablex.js';
/**
* Returns an iterable sequence that invokes the specified factory function whenever a call to [Symbol.iterator] has been made.
*
* @template TSource The type of the elements in the sequence returned by the factory function, and in the resulting sequence.
* @param {(() => Iterable<TSource>)} factory iterable factory function to invoke for each call to [Symbol.iterator].
* @returns {AsyncIterableX<TSource>} An iterable sequence whose observers trigger an invocation of the given iterable factory function.
*/
export declare function defer<TSource>(factory: () => Iterable<TSource>): IterableX<TSource>;