node-ejs-renderer/node_modules/thingies/es6/mutex.d.ts

6 lines
391 B
TypeScript
Raw Permalink Normal View History

2024-06-09 13:55:01 -04:00
/**
* Executes only one instance of give code at a time. For parallel calls, it
* returns the result of the ongoing execution.
*/
export declare function mutex<This, Args extends any[], Return>(fn: (this: This, ...args: Args) => Promise<Return>, context?: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Promise<Return>>): (this: This, ...args: Args) => Promise<Return>;