News for hackers. Stuff that matters.
Re:Building the JavaScript Promise Class by timothyg on Monday September 05, 2022 @06:25PM (#32730225)
A short guide I wrote on building JavaScript promises from scratch. I've often found it difficult to explain how promises work under the hood; a simple, functional, and reasonably spec-compliant implementation will hopefully make that easier.