Re: [whatwg/dom] Add abort reason to AbortSignal (PR #1027)

This is an optional suggestion but it may be good to introduce a predicate just for convenience.

```
An AbortSignal is aborted when its abort reason is undefined.
```

See https://fetch.spec.whatwg.org/#body-unusable, https://streams.spec.whatwg.org/#readablestream-readable for examples.

The difference between the predicate and the aborted flag is we don't need to update the flag.

-- 
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/1027#issuecomment-953750538

Received on Thursday, 28 October 2021 11:20:36 UTC