@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
18 lines (17 loc) • 890 B
TypeScript
import { AsyncIterableX } from '../asynciterablex';
import { MonoTypeOperatorAsyncFunction } from '../../interfaces';
export declare class DelayEachAsyncIterable<TSource> extends AsyncIterableX<TSource> {
private _source;
private _dueTime;
constructor(source: AsyncIterable<TSource>, dueTime: number);
[Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator<TSource, void, unknown>;
}
/**
* Delays the emitting of each items in the async-iterable by the given due time.
*
* @export
* @template TSource The type of elements in the source sequence.
* @param {number} dueTime The delay duration in milliseconds
* @returns {MonoTypeOperatorAsyncFunction<TSource>} An operator which takes an async-iterable and delays each item in the sequence by the given time.
*/
export declare function delayEach<TSource>(dueTime: number): MonoTypeOperatorAsyncFunction<TSource>;