Jorge,
Would it still be satisfying to you if instead of writing the call
expression like this:
> try {
> response = asyncFunction(request); //might suspend execution
> }
> catch (e) {
> //whatever
> }
> //our code continues here
we needed to write it with an explicit annotation, like this:
response = yield asyncFunction(request); //might suspend execution
or perhaps this:
yield { response = asyncFunction(request); } //might suspend execution
or some other creative way of statically encoding the "might suspend
execution" condition into the syntax?
-Eric
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss