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

Remove AsyncAlgorithms #25

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Remove AsyncAlgorithms #25

merged 2 commits into from
Dec 6, 2023

Conversation

brzzdev
Copy link
Contributor

@brzzdev brzzdev commented Dec 5, 2023

throttle -> _throttle
Remove select

throttle -> _throttle
Remove select
@mbrandonw
Copy link
Member

Hey @brzzdev, thanks for taking the time to do this.

Ideally we would update this dependency so that it supports 0.0.0..<2.0.0 so that we don't mess up people using older versions of AsyncAlgorithms. But also I don't think that's even possible because we can detect between 0.x and 1.x at compile time.

But also, I think we would prefer to just remove the AsyncAlgorithms dependency entirely, as well as the tests that use it. It's too much added complexity from a maintenance point of view for not much benefit.

Would you want to give that a shot?

@brzzdev
Copy link
Contributor Author

brzzdev commented Dec 6, 2023

Hi @mbrandonw, no worries. Happy to try and help :)

It looks like AsyncAlgorithms is only used in ClocksTests, so unless someone explicitly pulls in that test target, it shouldn't affect their version.

Tested this in a new project, pulling in swift-clocks only pulls down swift-concurrency-extras and xctest-dynamic-overlay.

Screenshot 2023-12-06 at 21 01 40

Still happy to try removing AsyncAlgorithms if you still think it's best, but I'd say there's value in testing how the clocks interact with it.

@brzzdev
Copy link
Contributor Author

brzzdev commented Dec 6, 2023

Screenshot 2023-12-06 at 21 05 32

To further test this, the same test app is happy to pull down 1.0.0 of AsyncAlgorithms even though the current production version of swift-clocks is relying on specific commit of it for it's testTarget.

@stephencelis
Copy link
Member

@brzzdev I think we'd still prefer to remove the dependency entirely at this point. It was mainly helpful when first developing the library to validate against other code written by Apple.

@brzzdev brzzdev changed the title Bump AsyncAlgorithms to 1.0.0 Remove AsyncAlgorithms Dec 6, 2023
@brzzdev
Copy link
Contributor Author

brzzdev commented Dec 6, 2023

Fair enough.

Besides deleting the AsyncAlgorithmsTests file, the only other test relying on it was testRunMultipleUnitsOfWork where I replaced AsyncTimerSequence with your clock.timer

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

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

Thanks!

@stephencelis stephencelis merged commit d631338 into pointfreeco:main Dec 6, 2023
4 checks passed
@brzzdev brzzdev deleted the AsyncAlgorithms-1.0.0 branch December 6, 2023 23:26
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