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

Sprinkle AbortSignals over the code to make it cancellable #140

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zner0L
Copy link
Contributor

@zner0L zner0L commented Nov 22, 2024

This is a precursor to tweaselORG/cyanoacrylate#55.

src/android.ts Outdated Show resolved Hide resolved
src/android.ts Outdated Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
src/ios.ts Show resolved Hide resolved
baltpeter
baltpeter previously approved these changes Nov 25, 2024
Copy link
Member

@baltpeter baltpeter left a comment

Choose a reason for hiding this comment

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

I haven't tested this but it looks good. If you want me to test, it'll have to wait until tomorrow. Otherwise, feel free to merge and release.

It turns out warnings are good for something. We needed to remove the listeners if a timeout completes sucessfully, see nodejs/node#35990
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.

2 participants