4 ms·
The reason this works is that promises are already representative of queues of pending values. To contrast, here's the ES7 version (works with babel) I added to
by inglor 11y ago
The reason this works is that promises are already representative of queues of pending values. To contrast, here's the ES7 version (works with babel) I added to the gist https://gist.github.com/benjamingr/d08cfe94d3f0db1f954d#file-es7-js https://gist.github.com/benjamingr/d08cfe94d3f0db1f954d#file...
It's awesome that it's a post by someone who just attended the recourse center and they're a new programmer and already struggling with these interesting issues and trying to solve them - but I beg people who attack these issues to read existing material :)
- chimeracoder 11y ago> It's awesome that it's a post by someone who just attended the recourse center and they're a new programmer and already struggling with these interesting issues and trying to solve them FYI, not everyone who attends the Recurse Center is a new programmer. In this particular case, Michelle (the author) has a decade and a half of experience developing in Javascript and writing Javascript frameworks (ie, writing the frameworks themselves).
- inglor 11y agoThanks for clarifying, I did not know that - I'll make sure I check this sort of stuff in the future.
- deleted 11y ago[deleted]