- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 17 May 2017 09:45:06 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 17 May 2017 16:46:42 UTC
domenic commented on this pull request. > @@ -1554,8 +1564,16 @@ them. For instance, if the operation has already completed. <li><p>Set <var>signal</var>'s [=AbortSignal/aborted flag=]. - <li><p><a for=set>For each</a> <var>algorithm</var> in <var>signal</var>'s - [=AbortSignal/abort algorithms=]: run <var>algorithm</var>. + <li> + <p><a for=set>For each</a> <var>algorithm</var> in <var>signal</var>'s + [=AbortSignal/abort algorithms=]: + + <ol> + <li><p>Run <var>algorithm</var>. + + <li><p>Remove <var>algorithm</var> from <var>signal</var>'s + <a for=AbortSignal>abort algorithms</a>. Mutating a list as you loop through it, although it's probably well-defined, can be confusing, and easy to implement correctly. I'd suggest just clearing the list after the loop. -- 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/pull/437#pullrequestreview-38725570
Received on Wednesday, 17 May 2017 16:46:42 UTC