File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -131,12 +131,13 @@ Argument is optional and defaults to the lock expiration time.
131131
132132### ` getRemainingTime `
133133
134- Get the remaining time before the lock expires.
134+ Get the remaining time in milliseconds before the lock expires.
135135
136136``` ts
137137const lock = verrou .createLock (' key' , ' 10s' )
138138await lock .acquire ()
139139
140+ // returns remaining time for the lock in milliseconds
140141const remainingTime = lock .getRemainingTime ()
141142```
142143
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ export class Lock {
174174 }
175175
176176 /**
177- * Get the remaining time before the lock expires
177+ * Get the remaining time in milliseconds before the lock expires
178178 */
179179 getRemainingTime ( ) {
180180 if ( this . #expirationTime === null ) return null
You can’t perform that action at this time.
0 commit comments