2022-06-08 10:36:39 +00:00
|
|
|
import { asyncScheduler } from '../scheduler/async';
|
2023-08-17 09:47:40 +00:00
|
|
|
import { throttle } from './throttle';
|
2022-06-08 10:36:39 +00:00
|
|
|
import { timer } from '../observable/timer';
|
|
|
|
export function throttleTime(duration, scheduler, config) {
|
|
|
|
if (scheduler === void 0) { scheduler = asyncScheduler; }
|
|
|
|
var duration$ = timer(duration, scheduler);
|
|
|
|
return throttle(function () { return duration$; }, config);
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=throttleTime.js.map
|