- From: Jafar Husain <notifications@github.com>
- Date: Thu, 14 Dec 2017 15:33:11 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 14 December 2017 15:33:36 UTC
@jakearchibald Sync dispatch in userland EventTargets is already a pretty big footgun IMO (ie reentrancy). There are already good reasons why EventTarget vendors should wait until the job queue is drained before looking for a cancellation.* Failing that, the aforementioned `do` method will allow developers to synchronously cancel the minority of EventTargets that do sync dispatch (https://github.com/whatwg/dom/issues/544#issuecomment-351455482) * Perhaps this can be encouraged by providing a convenience asyncDispatchEvent method on EventTarget that returns a Promise? -- 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-351744903
Received on Thursday, 14 December 2017 15:33:36 UTC