Locking in TypeScript

If you've worked in a non-JavaScript language, you're likely familiar with the concept of a lock. Locks are useful in multi-threaded environments to ensure access to a given variable cannot be modified by two threads concurrently. This functionality is usually provided by a runtime structure such as a semaphore. Some

Continue Reading