I just looked at Dave Herman with a very interesting task.js. In his example, he has the following line:
var [foo, bar] = yield join(read("foo.json"), read("bar.json")).timeout(1000);
I am familiar with generators, but I do not understand how the yield expression evaluates what can be assigned [foo, bar]. In fact, I would not expect the expression to be assigned to anything, since it basically matches the return.
The output syntax for JS still seems a bit underestimated, and I could not find any information about it.
So, to clarify my question: what is foo and bar ultimately assigned to?
source share