2 ms·
Most of the time I'm processing data that is on a queue, and I have some kind of event loop. Promises are great for simple things, I guess. But they just seem l
by kzahel 14y ago
Most of the time I'm processing data that is on a queue, and I have some kind of event loop. Promises are great for simple things, I guess. But they just seem like extra, unnecessary syntax. I tried a while ago looking at the different libraries to see if they would give me a "resolveAll/sequential/parallel" for a list of promises, but none of the libraries even seemed to do something very basic like that, which is where I would get any actual utility. I guess most promises are told to "execute" (do their asynchronous thing) as soon as the promise is created. I'm more interested in being able to have more fine grained control about when the execution happens, too.
All in all, I find promises to be pretty pointless in javascript. Until ES6, that is. I also experimented with the "yield" expression in google's traceur compiler, but they were still working out their issues last time I tried.