Re: [whatwg/dom] Consider adding a timeout parameter to the AbortController constructor (Issue #1110)

I’ve needed to compose timeout-related signals and other signals many times. In some cases this did mean just one timeout + its creator had controller access, very often the relationships were often more complex than that. What we ended up needing to sort it out was a set of compositional utilities for signals (and sometimes controllers) which were very often analogous to those familiar from Promise. With a small library of those utils managing AC/AS eventually became a breeze, but it took time to land on the right mental model & understand what was really called for. If the API surface for AC & AS had muddled their relationship, it wouldn’t have helped with that. Utils like `any` though — that’s the stuff; it really worked & the code stayed clear over time.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1110#issuecomment-1242994278

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1110/1242994278@github.com>

Received on Sunday, 11 September 2022 16:03:48 UTC