Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Write simple asynchronous code with JavaScript generators

via egghead.io

Overview

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!

Syllabus

  • Use JavaScript (ES6) generators to pause function execution
  • Send messages to and from JavaScript (ES6) generators
  • Error handling in JavaScript (ES6) generators
  • Iterate over JavaScript (ES6) generators
  • Delegate JavaScript (ES6) generator iteration control
  • Use JavaScript (ES6) generators with Promises to handle async flows

Taught by

Max Stoiber

Reviews

4.4 rating at egghead.io based on 353 ratings

Start your review of Write simple asynchronous code with JavaScript generators

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.