Re: [whatwg/dom] Add abortController.close / abortSignal.closed (PR #1042)

@MattiasBuelens commented on this pull request.



>  <p>A <var>followingSignal</var> (an {{AbortSignal}}) is made to
 <dfn export for=AbortSignal>follow</dfn> a <var>parentSignal</var> (an {{AbortSignal}}) by running
 these steps:
 
 <ol>
  <li><p>If <var>followingSignal</var> is [=AbortSignal/aborted=], then return.
 
+ <li><p>If <var>followingSignal</var> is [=AbortSignal/closed=], then return.

Ideally, if _followingSignal_ becomes closed later on, we would remove the abort steps added to *parentSignal* so we don't unnecessarily keep *parentSignal* alive.

Not sure how that'll work in practice though. We've already had a similar discussion in https://github.com/whatwg/dom/issues/920#issuecomment-726879818.

-- 
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/1042#pullrequestreview-827012249

Received on Wednesday, 8 December 2021 22:14:13 UTC