1. Home
  2. Mutex in Javascript (Typescript if you will)
  3. It took two and a chance
  4. It's easier to love God
  5. AI
  6. Moving away from try-catch
  7. Stupidity Test
  8. Who are you?
  9. 2024 in review
  10. As a dad
  11. Gravitate towards Purpose
  12. Shame on you, Google
  13. Disconnect of disciplines
  14. Typesafe LocalStorage API
  15. A progressive society
  16. Nobody reads
  17. 10K 3K not about money ๐Ÿ‡ฌ๐Ÿ‡ญ
  18. Flat file hierarchy
  19. Stack Ethnicity
  20. This is stupid
  21. 2023 in review
  22. Diversify your interests
  23. CI: NPM Workspaces & GitHub Actions
  24. Preact Signals: A journey through states
  25. stylebender: Speeding my web workflow
  26. Optimizing fonts
  27. Understanding React refs and React.forwardRef
  28. Benevolence: A hard concept
  29. Interfacing with MongoDB in Tauri ๐Ÿฆ€ apps
  30. I did it again. I had to.
Older: Mutex in Javascript (Typescript if you will)โ†“

Aug 13, 2025 ยท 3 min read

Mutex in Javascript (Typescript if you will)

Using singletons in multi-process/multi-promise use-cases

I'm fascinated by the universe ๐ŸŒ . Its vastness and infinity; let me show you. Anyways, my name is De-Great. A super-creative ex-programmer exploring electrical/robotics engineering.

Welcome to my site. Over here, you'd find posts on anything I'm interested in.

๐Ÿ‡ฌ๐Ÿ‡ญ
Chat, a coding agent IDE
chat
Tables, a database client
tables
OTR, a map of people and events nearby
OTR
Gitflow, a GitHub client
gitflow
Clean Sheet, a bookkeeping app for small businesses
clean-sheet
USSDK, a visual builder for USSD apps
ussdk
Chat, a coding agent IDE
chat
Tables, a database client
tables
OTR, a map of people and events nearby
OTR
Gitflow, a GitHub client
gitflow
Clean Sheet, a bookkeeping app for small businesses
clean-sheet
USSDK, a visual builder for USSD apps
ussdk
Chat, a coding agent IDE
chat
Tables, a database client
tables
OTR, a map of people and events nearby
OTR
Gitflow, a GitHub client
gitflow
Clean Sheet, a bookkeeping app for small businesses
clean-sheet
USSDK, a visual builder for USSD apps
ussdk