Questions tagged [taskjs]

task.js is an experimental library for ES6 that makes sequential, blocking I/O simple and beautiful, using the power of JavaScript’s new yield operator.

1 questions
6
votes
2 answers

Strange yield syntax in JavaScript

I just took a look at Dave Herman's very interesting task.js. In his example he has this line: var [foo, bar] = yield join(read("foo.json"), read("bar.json")).timeout(1000); I'm familiar with generators but I don't…
Matthew Gertner
  • 4,487
  • 2
  • 32
  • 54