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: it-foreach should only await thenables #100

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

achingbrain
Copy link
Owner

If a synchronous function is passed to it-foreach we don't need to await on the result - this artificial asynchronicity introduces unnecessary latency on hot code paths.

If a synchronous function is passed to `it-foreach` we don't need
to `await` on the result - this artificial asynchronicity introduces
unnecessary latency on hot code paths.
@achingbrain achingbrain merged commit 265af59 into master Nov 12, 2023
22 checks passed
@achingbrain achingbrain deleted the fix/only-await-thenables branch November 12, 2023 06:19
github-actions bot pushed a commit that referenced this pull request Nov 12, 2023
## [it-foreach-v2.0.5](it-foreach-v2.0.4...it-foreach-v2.0.5) (2023-11-12)

### Bug Fixes

* it-foreach should only await thenables ([#100](#100)) ([265af59](265af59))
Copy link

🎉 This PR is included in version it-foreach-v2.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on npm package (@latest dist-tag)

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