16 lines
929 B
TypeScript
16 lines
929 B
TypeScript
import { Observable } from '../Observable';
|
|
import { Scheduler } from '../Scheduler';
|
|
/**
|
|
* Returns the source Observable delayed by the computed debounce duration,
|
|
* with the duration lengthened if a new source item arrives before the delay
|
|
* duration ends.
|
|
* In practice, for each item emitted on the source, this operator holds the
|
|
* latest item, waits for a silence for the `dueTime` length, and only then
|
|
* emits the latest source item on the result Observable.
|
|
* Optionally takes a scheduler for manging timers.
|
|
* @param {number} dueTime the timeout value for the window of time required to not drop the item.
|
|
* @param {Scheduler} [scheduler] the Scheduler to use for managing the timers that handle the timeout for each item.
|
|
* @returns {Observable} an Observable the same as source Observable, but drops items.
|
|
*/
|
|
export declare function debounceTime<T>(dueTime: number, scheduler?: Scheduler): Observable<T>;
|