UNPKG

@lifaon/rx-js-light

Version:

Blazing fast Observables

15 lines (14 loc) 427 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.timeout = void 0; var create_timeout_1 = require("../../../../../../misc/timer/create-timeout.cjs"); function timeout(duration, getValue) { return function (emit) { return (0, create_timeout_1.createTimeout)(getValue === void 0 ? emit : function () { return emit(getValue()); }, duration); }; } exports.timeout = timeout;