Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Add destructor to XHR to abort any inflight requests.

Add destructor to XHR to abort any inflight requests.
Keep request around, as the http/client needs it for cleanup. Calling abort
on an already deinit'd request is safe.
@karlseguin karlseguin marked this pull request as draft May 20, 2025 13:34
This PR will be only for having the destructor hook. XHR/http.client changes to
leverage this will be done in a subsequent PR.
@karlseguin karlseguin marked this pull request as ready for review May 21, 2025 03:41
@karlseguin
Copy link
Collaborator Author

I re-worked this PR to focus only on the destructor callback hook. Nothing is currently using it. A separate commit will add the destructor to XHR...it requires more changes than I was expecting.

Copy link
Contributor

@sjorsdonkers sjorsdonkers left a comment

Choose a reason for hiding this comment

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

Nice

@karlseguin karlseguin merged commit 3a15790 into main May 21, 2025
17 checks passed
@karlseguin karlseguin deleted the webapi_destructor branch May 21, 2025 10:09
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants