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

feat: remove reset() #4

Merged
merged 5 commits into from
Jun 3, 2020
Merged

feat: remove reset() #4

merged 5 commits into from
Jun 3, 2020

Conversation

FauxFaux
Copy link
Contributor

@FauxFaux FauxFaux commented Jun 3, 2020

BREAKING CHANGE: reset() is gone. Just don't use it.

It is not really safe to use reset() ever. This library is
shared between different bits of code. You cannot know if
they might need to yield, even if you didn't.

It's unclear it's even useful in other cases; much of the cost
of using the library is in checking, not actually spinning.

(Alternative: retain reset(), but make it do nothing?)

Also, while we're BREAKING: target node 8, which should get us better code (no tslib_1.__awaiter).

BREAKING CHANGE: target node 8 (async)
BREAKING CHANGE: reset() is gone. Just don't use it.

It is not really safe to use reset() ever. This library is
shared between different bits of code. You cannot know if
they might need to yield, even if you didn't.

It's unclear it's even useful in other cases; much of the cost
of using the library is in checking, not actually spinning.
@FauxFaux FauxFaux requested a review from darscan June 3, 2020 14:56
@FauxFaux FauxFaux requested a review from a team as a code owner June 3, 2020 14:56
Copy link

@darscan darscan left a comment

Choose a reason for hiding this comment

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

Yes please!

@FauxFaux FauxFaux merged commit 585fa50 into master Jun 3, 2020
@FauxFaux FauxFaux deleted the feat/remove-reset-8 branch June 3, 2020 15:07
@snyksec
Copy link

snyksec commented Jun 3, 2020

🎉 This PR is included in version 2.0.0 🎉

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.

None yet

3 participants