You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
513 B
JavaScript
13 lines
513 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.delay = void 0;
|
|
var async_1 = require("../scheduler/async");
|
|
var delayWhen_1 = require("./delayWhen");
|
|
var timer_1 = require("../observable/timer");
|
|
function delay(due, scheduler) {
|
|
if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
|
|
var duration = timer_1.timer(due, scheduler);
|
|
return delayWhen_1.delayWhen(function () { return duration; });
|
|
}
|
|
exports.delay = delay;
|
|
//# sourceMappingURL=delay.js.map
|