who among us hasn’t deadlocked node.js with two interdependent concurrency queues?? who!?
Also posted to Mastodon.
11 replies
anyway node.js just bails out silently when this happens so it’s decidedly not a fun issue to track down 😭
anyway node.js just bails out silently when this happens so it’s decidedly not a fun issue to track down 😭
-
well wait just one minute I love Node.js
-
You can do that with some node.js JavaScript code? Can you please share an example?
Not at the computer right now but it was two p-queue instances fighting with each other
(With async callbacks)
oh would love to know more about how this can happen! I happens to be juggling queues like that these days at work and I now worry I could run into this
I think the biggest takeaway for me is to make sure the queues don’t have circular references! Promise A waiting for Promise B waiting for Promise A is bad news 🫣🫣🫣