@enterprise_search/kleislis
Advanced tools
Comparing version 0.6.2 to 0.6.3
/// <reference types="node" /> | ||
import { K0, K1, K2, K3, K4, K5 } from "./kleisli"; | ||
import { Timeservice } from "@itsmworkbench/utils/dist/src/timeservice"; | ||
import { Timeservice } from "@itsmworkbench/utils"; | ||
export type Throttling = { | ||
@@ -5,0 +5,0 @@ current?: number; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.stopThrottling = exports.startThrottling = exports.withThrottle = void 0; | ||
const timeservice_1 = require("@itsmworkbench/utils/dist/src/timeservice"); | ||
const utils_1 = require("@itsmworkbench/utils"); | ||
function withThrottle(throttle, fn) { | ||
@@ -46,3 +46,3 @@ // Start the throttling interval only once when `withThrottle` is called | ||
} | ||
function startThrottling(throttle, timeService = timeservice_1.DateTimeService) { | ||
function startThrottling(throttle, timeService = utils_1.DateTimeService) { | ||
if (throttle.intervalId || throttle.kill) | ||
@@ -49,0 +49,0 @@ return; // Idempotently handle already running intervals |
{ | ||
"name": "@enterprise_search/kleislis", | ||
"description": "functions that have inputs, returns promises, and non functionals around them", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"main": "dist/index", | ||
@@ -6,0 +6,0 @@ "types": "dist/index", |
75708