JavaScript 2018 - New Features
Async Generators
They combine the capabilities of
Generator function
Async function
The programmer can use await and yield keyword together. The function returns a promise object. The syntax is :
async function* () { yield await Promise.resolve(1...
mahavir.hashnode.dev3 min read