Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing overload for AbortController#abort with reason argument #26

Open
joprice opened this issue Jun 10, 2024 · 1 comment
Open

Missing overload for AbortController#abort with reason argument #26

joprice opened this issue Jun 10, 2024 · 1 comment

Comments

@joprice
Copy link

joprice commented Jun 10, 2024

By default, calling abort on an AbortController results in an error with signal is aborted without reason. There is an overload of abort that allows providing a more informative reason for the cancellation: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/abort_static#reason

@MangelMaxime
Copy link
Member

I suppose it should be of the type obj?

The reason why the operation was aborted, which can be any JavaScript value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants