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

Replace abortAfterTimeout with RequestOptions.timeout #60

Merged
merged 6 commits into from
Nov 16, 2024

Conversation

jspahrsummers
Copy link
Member

abortAfterTimeout was fundamentally flawed because it doesn't support easy cancellation of the timeout, meaning that it would create a bunch of timers that end up leaking.

RequestOptions.timeout is probably closer to expectation of how the API should work anyway—it just increases complexity of the implementation.

@jspahrsummers jspahrsummers merged commit 1cb92b6 into main Nov 16, 2024
3 checks passed
@jspahrsummers jspahrsummers deleted the justin/remove-abort-after-timeout branch November 16, 2024 16:40
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.

1 participant