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!
I would like more examples. It was a nice introduction to the topic.
well put together, generators are taxing but this was very simple and easy to understand building on generators and a basic example of usage with promise...yay! :)
It's to know how generators worked but I don't understand their practical use case.
I understood how to pass values back IN to a generator function. However, that last lesson on coroutines was a bunch of messy-looking code (to my eyes) without a real obvious practical application.
I will suggest this tutorial to my friends whom they want to learn generators professionally.
Thank you so much.
great course - easy to understand description thanks to doing it step by step. Something on async generators would be nice too