On Tue, Oct 8, 2013 at 12:20 PM, Ted Mielczarek <t...@mielczarek.org> wrote:

> 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.)


Oh yes forgot that, so it's more verbose than that even :(
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to