Javascript Concurrency

Every wondered how the javascript concurrency model works? I didn’t either …. until tonight, chasing a bug in todotxttdi.com todo.txt HTML client.  In case you are interested, here are the three references that got me across the line:

  1. Mozilla Developer Network Concurrency model and Event Loop
  2. Sam Tobin-Hochstadt JavaScript: a concurrent language with shared mutable state
  3. Daniel Lew JavaScript: How do I store javascript functions in a queue for them to be executed eventually