Kyle is an evangelist of the Open Web, and passionate about all things JavaScript. He writes, speaks, teaches, and contributes to OSS.
Promises, Generators, Async
-
Kyle Simpson &
Watch a preview for this workshop on YouTube
You probably know about promises by now, but are you still writing your async code as long chains of .then()
s? Did you leap for joy at the recent .finally()
promise feature? Bah. That’s all anti-pattern if you ask me. Promises are one of the most powerful concepts to be added to JS, but have one of the worst API designs of any JS feature.
So how can we make use of promises but not have to suffer this poor and confusing API? Async functions, of course! Except, async/await has some painful drawbacks. Maybe what we really want is generators.
More Awesome Sessions
SESSION
JavaScript Fundamentals for Functional Programming
Lean JavaScript fundamentals through hands-on, online training.
SESSION
Computer Science in Front End Dev: It's For More than Just Interviews
Lean JavaScript fundamentals through hands-on, online training.