@azure/search-documents
Version:
Azure client library to use AI Search for node.js and browser.
1 lines • 791 B
Source Map (JSON)
{"version":3,"file":"timers-browser.mjs","sourceRoot":"","sources":["../../src/timers-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,EAAc,EAAE,EAAU;IACvD,MAAM,EAAE,GAAG,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/B,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Creates an interval that calls the callback every `ms` milliseconds.\n * @param fn - The callback to invoke\n * @param ms - The interval in milliseconds\n * @returns A cleanup function to clear the interval\n */\nexport function createInterval(fn: () => void, ms: number): () => void {\n const id = setInterval(fn, ms);\n return () => clearInterval(id);\n}\n"]}