-
-
Notifications
You must be signed in to change notification settings - Fork 245
Deprecate gather, gatherN, gatherUnordered in favor of parSequence, parSequenceN, parSequenceUnordered #1145
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
Conversation
@Avasil @oleg-py @alexandru |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jozic - I think it looks great!
I added one comment about location of depreacted methods and we also have to make it compile / pass mimaReportBinaryIssues
check:
- We have benchmark module for a previous version as well so we have to either keep using
gather
or temporarily turn off its compilation in CI (at the top ofbuild.sbt
named asbenchmarksPrev
) - We need to add filters to
MimaFilters
for renamed objects with implementations. They are private so it's ok. It can be verified withevalJVM/mimaReportBinaryIssues
@@ -3517,36 +3517,46 @@ object Task extends TaskInstancesLevel1 { | |||
implicit bf: BuildFrom[M[A], B, M[B]]): Task[M[B]] = | |||
TaskSequence.traverse(in, f)(bf) | |||
|
|||
/** Alias for [[parSequence]] */ | |||
@deprecated("Use parSequence", "3.2.0") | |||
def gather[A, M[X] <: Iterable[X]](in: M[Task[A]])(implicit bf: BuildFrom[M[Task[A]], A, M[A]]): Task[M[A]] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should put deprecated methods to TaskDeprecated.Companion
to clean normal API
There is also slightly different convention for description with
/**
* DEPRECATED — please use XXX
*/
…arSequenceN, parSequenceUnordered
@Avasil thanks for feedback! Please check it out again |
@jozic Looks good, we can add the rest 👍 I think we can wait with |
…arTraverseN, parTraverseUnordered
@Avasil I've added second commit with changes for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you @jozic :)
addresses #1130