1 | import { IterableX } from './iterablex';
|
2 | /**
|
3 | * Returns an iterable sequence that invokes the specified factory function whenever a call to [Symbol.iterator] has been made.
|
4 | *
|
5 | * @export
|
6 | * @template TSource The type of the elements in the sequence returned by the factory function, and in the resulting sequence.
|
7 | * @param {(() => Iterable<TSource>)} factory iterable factory function to invoke for each call to [Symbol.iterator].
|
8 | * @returns {AsyncIterableX<TSource>} An iterable sequence whose observers trigger an invocation of the given iterable factory function.
|
9 | */
|
10 | export declare function defer<TSource>(factory: () => Iterable<TSource>): IterableX<TSource>;
|