Re: [whatwg/dom] AbortController.prototype.timeout and AbortController.prototype.cancel (Issue #1039)

@annevk:
> If you can invoke that method multiple times, do we need cancel() or should passing 0 or null be sufficient to clear it?

We'd still want the `close()` (née `cancel()`) because it's actually doing more than clearing the timeout. It's signaling internally to its `AbortSignal` that it won't ever trigger it from that point forward, and that the `AbortSignal` can clear it's set of abort algorithms. Anything downstream that might follow the `AbortSignal` would see `signal.closed = true` and know that they don't actually need to follow the signal since it won't be triggered.

-- 
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/1039#issuecomment-987375976

Received on Monday, 6 December 2021 23:44:06 UTC