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

fix: use AbortSignal.timeout instead of setTimeout #375

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

achingbrain
Copy link
Member

The timeouts returned from setTimeout keep the node process running until they fire.

Swap for AbortSignal.timeout which works the same way but doesn't keep the event loop from exiting.

The timeouts returned from `setTimeout` keep the node process running until they fire.

Swap for `AbortSignal.timeout` which works the same way but doesn't keep the event loop from exiting.
@achingbrain achingbrain requested a review from a team as a code owner September 29, 2024 09:08
@achingbrain achingbrain merged commit f65ab4e into main Oct 2, 2024
16 of 17 checks passed
@achingbrain achingbrain deleted the fix/use-abort-signal-timeout branch October 2, 2024 10:38
github-actions bot pushed a commit that referenced this pull request Oct 2, 2024
## [1.8.1](v1.8.0...v1.8.1) (2024-10-02)

### Bug Fixes

* CI and update repo ([#344](#344)) ([91f1e08](91f1e08))
* update all deps and fix type errors ([#376](#376)) ([2b0d781](2b0d781))
* use AbortSignal.timeout instead of setTimeout ([#375](#375)) ([f65ab4e](f65ab4e))

### Trivial Changes

* Update .github/dependabot.yml [skip ci] ([9c8c9e4](9c8c9e4))
* update workflow ([dae6def](dae6def))

### Dependencies

* bump @ipfs-shipyard/pinning-service-client from 1.0.1 to 2.0.0 ([#357](#357)) ([24dc773](24dc773))
Copy link

github-actions bot commented Oct 2, 2024

🎉 This PR is included in version 1.8.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant