Skip to content

[BCMS-926] Fixes timeout handling for wider compatibility#127

Merged
Toreno96 merged 2 commits into
masterfrom
fix-node-timeout-issues
Sep 4, 2025
Merged

[BCMS-926] Fixes timeout handling for wider compatibility#127
Toreno96 merged 2 commits into
masterfrom
fix-node-timeout-issues

Conversation

@Toreno96

@Toreno96 Toreno96 commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

It re-applies #124 with proper conventions for commit messages (which allows automatic publish to run).

https://tiugotech.atlassian.net/browse/BCMS-926

Removes the check for the `this` context during Butter class
instantiation, directly returning a new instance. This simplifies the
instantiation process, and should result in new instances each time this
is called in Node so that we respect user set timeouts
Addresses an issue where the timeout was not properly cleared in React
Native and Node.js environments when using a regular timeout (instead of
AbortSignal.timeout).

Updates the code to ensure the timeout is cleared by saving the timeout
ID and clearing it after use, preventing potential memory leaks or
unexpected behavior.

@ViolanteCodes ViolanteCodes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This LGTM - looks the exact same as the two reverted commits

@Toreno96 Toreno96 merged commit 09465b2 into master Sep 4, 2025
4 checks passed
@github-actions github-actions Bot mentioned this pull request Sep 4, 2025
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.

3 participants