| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.throttleTime = void 0; |
| 4 |
var async_1 = require("../scheduler/async"); |
| 5 |
var throttle_1 = require("./throttle"); |
| 6 |
var timer_1 = require("../observable/timer"); |
| 7 |
function throttleTime(duration, scheduler, config) { |
| 8 |
if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } |
| 9 |
var duration$ = timer_1.timer(duration, scheduler); |
| 10 |
return throttle_1.throttle(function () { return duration$; }, config); |
| 11 |
} |
| 12 |
exports.throttleTime = throttleTime; |
| 13 |
//# sourceMappingURL=throttleTime.js.map |