We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MutuallyExclusiveCallback
1 parent c4c03de commit 0abb9b0Copy full SHA for 0abb9b0
packages/keyring-controller/src/KeyringController.ts
@@ -364,6 +364,12 @@ export type ExportableKeyEncryptor = GenericEncryptor & {
364
importKey: (key: string) => Promise<unknown>;
365
};
366
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
+ */
373
type MutuallyExclusiveCallback<T> = ({
374
releaseLock,
375
}: {
0 commit comments