Add AbortSignal.aborted() static - #960
Conversation
annevk
left a comment
There was a problem hiding this comment.
This looks great, thanks for working on this James!
@josepharhar @smaug---- @mfreed7 @rniwa thoughts on adding this? Seems simple enough and there's precedent with promises (Promise.reject()). Though maybe that means this should be AbortSignal.abort()?
0559b7a to
089887c
Compare
|
PR to add test here: web-platform-tests/wpt#28003 |
Returns an already aborted AbortSignal
089887c to
7ed2987
Compare
commented
Mar 11, 2021
|
lgtm, this looks particularly easy to implement :) |
commented
Mar 11, 2021
|
@jasnell thanks! You or your employer will need to sign https://participate.whatwg.org/agreement to appease the IPR bot. It seems we're all done here apart from that. @benjamingr @jakearchibald @domenic @MattiasBuelens any final thoughts? |
commented
Mar 11, 2021
Done! |
commented
Mar 11, 2021
|
LGTM. I still vaguely prefer the |
commented
Mar 11, 2021
|
This generally looks fine to me and makes sense, though bike-shedding, I'm not sure I like the name. |
commented
Mar 11, 2021
rsLGTM based on @josepharhar's LGTM. Thanks! |
commented
Mar 12, 2021
|
@jasnell do you want to file the bug against Firefox? |
commented
Mar 12, 2021
|
Yeah I'll do so this morning! |
commented
Mar 15, 2021
|
I ended up filing https://bugzilla.mozilla.org/show_bug.cgi?id=1698468. Thanks everyone for the quick turnaround! Hopefully it'll get implemented in a similar pace. 😊 |
|
Thanks @annevk ... Sorry I had missed my reminder notification to do that! I appreciate it! |
commented
Mar 17, 2021
|
Does this need an "impacts documentation" label? |
commented
Mar 17, 2021
|
cc @whatwg/documentation |
|
I’ll make time to write up MDN documentation for this some time this month (unless somebody gets to it before I manage to) |
Returns an already aborted AbortSignal per #959
Fixes: #959
(See WHATWG Working Mode: Changes for more details.)
Preview | Diff