- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 14 Dec 2017 10:06:34 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 14 December 2017 18:07:05 UTC
> It's not clear to me that the deferral to microtask time is doing any work here. Well, it's guaranteeing that promise reactions only run on an empty stack, which is a fairly important invariant that's ingrained into a lot of promise-using code. I personally don't think that introducing a new promise type whose timing is different from all others is a good idea; I think it increases the chances of unexpected behavior, instead of decreasing it. If you really think `first()` is an attractive nuisance whose downsides outweigh its benefits, then perhaps we should just take that as implementer feedback and remove it, but I think it would be a shame, as I see lots of useful ways to use it which won't ever encounter this problem. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/544#issuecomment-351790556
Received on Thursday, 14 December 2017 18:07:05 UTC