Skip to content

Instantly share code, notes, and snippets.

@awto
Created December 31, 2017 17:59
Show Gist options
  • Select an option

  • Save awto/0ec3c988a466d401480e75716821634c to your computer and use it in GitHub Desktop.

Select an option

Save awto/0ec3c988a466d401480e75716821634c to your computer and use it in GitHub Desktop.
decoupling article - consume transpiled
async function consume(input) {
const iter = input[Symbol.asyncIterator]()
for(let i;(i = await iter.next()).done;) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment