A way of explicitly reporting exceptions

Allen Wirfs-Brock allen at wirfs-brock.com
Mon Jun 23 14:30:56 PDT 2014


On Jun 23, 2014, at 2:23 PM, Domenic Denicola wrote:

> 
>> It seems to me that the best way to do this in ES6 would be to run the call backs as individual Jobs
> 
> I definitely think there should be an API for queuing jobs. (At least, as long as jobs manifest as microtasks in Node.js and the browser; otherwise they are not as useful.)
> 
> However, I don't think that completely solves the problem here, as jobs are asynchronous, whereas event listeners are generally not.
> 

I was under the impression that DOM triggered event listeners ran in their own turn and that this was the model we would want to generally apply to ES events.

Allen




More information about the es-discuss mailing list