promises

Generators in JavaScript - Introduction

Generators in JavaScript represent a special kind of function that can be paused and continued and can also produce multiple values.