Answer the question
In order to leave comments, you need to log in
What is the correct way to name a sync error in JS?
In JS, an asynchronous operation will end no one knows when: on the next iteration of the event loop or after a hundred. And in order for the execution flow to be predictable, you have to do the same things as in a multi-threaded application, for example, temporarily close a piece of code from execution with a lock.
And there are usually no questions to the locks themselves, but if someone writes a comment that this is a lock from a possible Race Condition, then someone will definitely come and say “There is no air conditioning flight in JS, it is single-threaded“.
So. What is the proper way to call timing error in JS if not Race Condition?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question