How could something equivalent to lock in C# be implemented in JavaScript?
lock
So, to explain what I\'m thinking a simple use case is:
User clicks
Why don't you disable the button and enable it after you finish the event?
Happy coding !!!