Skip to content

Commit

Permalink
style: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
giladgd authored Feb 23, 2024
1 parent d59ff5b commit 7538201
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/withLock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const locks = new Map<any, Map<string, Promise<any>>>();
/**
* Only allow one instance of the callback to run at a time for a given `scope` and `key`.
*/
export async function withLock<ReturnType, const ScopeType = any>(scope: ScopeType, key: string, callback: (this: ScopeType) => Promise<ReturnType>): Promise<ReturnType>;
export async function withLock<ReturnType, const ScopeType = any>(
scope: ScopeType, key: string, callback: (this: ScopeType) => Promise<ReturnType>
): Promise<ReturnType>;
export async function withLock<ReturnType, const ScopeType = any>(
scope: ScopeType, key: string, acquireLockSignal: AbortSignal | undefined, callback: (this: ScopeType) => Promise<ReturnType>
): Promise<ReturnType>;
Expand Down

0 comments on commit 7538201

Please sign in to comment.