Send messages to and from JavaScript (ES6) generators

Share this video with your friends

Send Tweet

We can communicate between generators and their instances with strategically placed yield keywords. This video will show you how to make it happen based on a simple example.

Fisker Karma
Fisker Karma
~ 7 years ago

What could be a possible use of this feature? I am new to generators :)