On 10/8/2013 3:14 PM, Dave Townsend wrote: > I was asked to clarify what I meant by my two examples so here are some > snippets of code that illustrate it. This is forcibly async but you get the > point I hope. If you want to add three numbers you can define: > > function add3(foo, bar, baz) { > return Task.spawn(() => { n.b.: fat arrow functions cannot be generators. (Found this out at a Summit session.)
-Ted _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform