Skip to content

Commit 0abb9b0

Browse files
committed
docs: add MutuallyExclusiveCallback tsdoc
1 parent c4c03de commit 0abb9b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/keyring-controller/src/KeyringController.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,12 @@ export type ExportableKeyEncryptor = GenericEncryptor & {
364364
importKey: (key: string) => Promise<unknown>;
365365
};
366366

367+
/**
368+
* A function executed within a mutually exclusive lock, with
369+
* a mutex releaser in its option bag.
370+
*
371+
* @param releaseLock - A function to release the lock.
372+
*/
367373
type MutuallyExclusiveCallback<T> = ({
368374
releaseLock,
369375
}: {

0 commit comments

Comments
 (0)