Files
starface-outlook-sync-addin/node_modules/thingies/lib/codeMutex.d.ts
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

7 lines
268 B
TypeScript

import type { Code } from './types';
/**
* Executes only one instance of give code at a time. If other calls come in in
* parallel, they get resolved to the result of the ongoing execution.
*/
export declare const codeMutex: <T>() => (code: Code<T>) => Promise<T>;