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

Use native abort controller when possible #1205

Merged
merged 5 commits into from
Oct 27, 2021

Conversation

carsonfarmer
Copy link
Member

fixes #819

Signed-off-by: Carson Farmer <carson.farmer@gmail.com>
@carsonfarmer carsonfarmer added the bug Something isn't working label Aug 26, 2021
@carsonfarmer carsonfarmer self-assigned this Aug 26, 2021
Signed-off-by: Carson Farmer <carson.farmer@gmail.com>
Signed-off-by: Carson Farmer <carson.farmer@gmail.com>
@@ -1,4 +1,4 @@
export { AbortController, AbortSignal } from 'abort-controller'
export { AbortController, AbortSignal } from 'native-abort-controller'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe worth an inline comment about mysticatea/abort-controller#24 and deprecating this need?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be misunderstanding your statement, of those in that issue... but this switch is the fix required to support native AbortController when available... no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, you are referring to the fact that if abort-controller supports this, we can switch back... yes good idea.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

until that issue is resolved, at which point the switch is no longer needed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep yep!

Signed-off-by: Carson Farmer <carson.farmer@gmail.com>
Signed-off-by: Carson Farmer <carson.farmer@gmail.com>
@carsonfarmer carsonfarmer merged commit 2ffe97d into master Oct 27, 2021
@carsonfarmer carsonfarmer deleted the carson/native-abort-controller branch October 27, 2021 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AbortController Polyfill
2 participants