@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API
15 lines • 652 B
TypeScript
/**
* @hidden
* Utility function to get currentTime in UTC milliseconds.
* @returns
*/
export declare function getCurrentTimestampInMs(): number;
/**
* @hidden
* Utility function to start a background task that runs at specified intervals.
* @param action - A function that returns a Promise, representing the task to be executed.
* @param intervalMs - The interval in milliseconds at which the task should run.
* @returns A NodeJS.Timeout object representing the timer for the background task.
*/
export declare function startBackgroundTask(action: () => Promise<void>, intervalMs: number): NodeJS.Timeout;
//# sourceMappingURL=time.d.ts.map