Get the latest tech news

Async Queue – One of my favorite programming interview questions


For the past 7+ years, I've been conducting a programming interview that has been a true personal favorite of mine. It was passed down to me from good friends (Jeremy Kaplan and Carl Sverre, and it was the latter whom I believe invented it). This interview has probably been given

(i.e., multiple threads trying to read the requestQueue array) This happens a lot since the single-threaded nature of JavaScript is not that well understood especially by less-experienced engineers. Implement a full blown AsyncQueue class with more methods that allow the clients to define some type of priority for different requests(let API design up to the candidate) I gave the Replit Agent a try on this interview earlier today with Claude Sonnet 4.0 and it was able to do a very good job with sendOnce(even with the minimum delay argument).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Async Queue

Async Queue