Skip to content

Instantly share code, notes, and snippets.

@dontpaniclabsgists
Created January 17, 2025 14:37
Show Gist options
  • Save dontpaniclabsgists/3ae66c265a8fba7c3614ec022393fb1e to your computer and use it in GitHub Desktop.
Save dontpaniclabsgists/3ae66c265a8fba7c3614ec022393fb1e to your computer and use it in GitHub Desktop.
private initialize_Mutex = async () => {
this.startTime = new Date().getTime();
await Promise.all([
...Array.from({ length: 3 }, async () => {
var key = 'mutexKey ';
await this.loadWithMutexLock(key);
this.log(this.mutexDataMap);
})
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment