Sunday, 29 December 2019

Promise question

Hello everyone,recently i saw a talk about promises in js. The talk was about bad practises using Promises. I found the repo on github, which has the used examples in the talk. Now im not sure how to use promises in a loop properly, without blocking the event loop. If you have some suggestions how to improve this example code, that its not blocking the event loop to longHere is the github repo, with the examples. https://github.com/jasnell/broken-promises/tree/master/Part1/Loopsand here is the talk with the right positionhttps://youtu.be/XV-u_Ow47s0?t=1442

Submitted December 29, 2019 at 04:02PM by kliefados

No comments:

Post a Comment