illustration for Write simple asynchronous code with JavaScript generators
pro

Write simple asynchronous code with JavaScript generators

Instructor

Max Stoiber

15m closed-captioning
·
6 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.4
3280
people completed
Published 8 years ago
|
Updated 4 years ago

Generators are a useful tool for handling asynchrony in your JavaScript applications. They were added to JavaScript with ES2015. When applied correctly they allow us to write asynchronous code that looks synchronous.

They also turn one of JavaScripts core paradigms on its head. Contrary to normal functions, generator functions can be paused and resumed at any arbitrary point in time with the yield keyword.

This course will walk you through the basics of generators so you’ll be able to use them in your applications without ripping your hair out!