Skip to content

Commit c24a7f4

Browse files
committed
Update comment
1 parent b69a675 commit c24a7f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/snaps-controllers/src/snaps/SnapController.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,8 +1966,10 @@ export class SnapController extends BaseController<
19661966
/**
19671967
* Persist the state of a Snap.
19681968
*
1969-
* This is run with a mutex to ensure that only one state update per Snap is
1970-
* processed at a time, avoiding possible race conditions.
1969+
* This function is debounced per Snap, meaning that multiple calls to this
1970+
* function for the same Snap will only result in one state update. It also
1971+
* uses a mutex to ensure that only one state update per Snap is processed at
1972+
* a time, avoiding possible race conditions.
19711973
*
19721974
* @param snapId - The Snap ID.
19731975
* @param newSnapState - The new state of the Snap.

0 commit comments

Comments
 (0)