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

chore: use AbortSignal instead of AbortController #10048

Merged
merged 1 commit into from Apr 20, 2023
Merged

Conversation

jrandolf
Copy link
Contributor

Usually you pass in the signal only. See https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal for example.

@jrandolf jrandolf requested a review from OrKoN April 20, 2023 02:24
@jrandolf jrandolf enabled auto-merge (squash) April 20, 2023 02:25
Copy link
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

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

Good point, thanks!

@jrandolf jrandolf disabled auto-merge April 20, 2023 06:18
@jrandolf jrandolf merged commit bbf2c0a into main Apr 20, 2023
28 of 30 checks passed
@jrandolf jrandolf deleted the jrandolf/abort branch April 20, 2023 06:18

try {
if (options.abortController?.signal.aborted) {
if (signal?.aborted) {
Copy link

Choose a reason for hiding this comment

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

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

Successfully merging this pull request may close these issues.

None yet

3 participants