"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.throttleTime = void 0;
const async_js_1 = require("../scheduler/async.js");
const throttle_js_1 = require("./throttle.js");
const timer_js_1 = require("../observable/timer.js");
function throttleTime(duration, scheduler = async_js_1.asyncScheduler, config) {
    const duration$ = (0, timer_js_1.timer)(duration, scheduler);
    return (0, throttle_js_1.throttle)(() => duration$, config);
}
exports.throttleTime = throttleTime;