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

Deprecate parTraverse in favor of parMap #2788

Closed
5 tasks
nomisRev opened this issue Aug 4, 2022 · 3 comments · Fixed by #2863
Closed
5 tasks

Deprecate parTraverse in favor of parMap #2788

nomisRev opened this issue Aug 4, 2022 · 3 comments · Fixed by #2863
Assignees

Comments

@nomisRev
Copy link
Member

nomisRev commented Aug 4, 2022

  • Rename parTraverse to parMap
  • Remove parTraverse signatures that don't preserve the correct CoroutineDispatcher context
  • Remove parTraverseEither
  • Remove parTraverseResult
  • Rename parTraverseValidated to parMapAccumulating, and use Either#mapAccumulating instead.
@serras serras mentioned this issue Aug 9, 2022
20 tasks
Atternatt added a commit to Atternatt/arrow that referenced this issue Sep 28, 2022
Atternatt added a commit to Atternatt/arrow that referenced this issue Sep 28, 2022
Atternatt added a commit to Atternatt/arrow that referenced this issue Sep 28, 2022
@serras
Copy link
Member

serras commented Dec 5, 2022

Fixed by #2795

@serras serras closed this as completed Dec 5, 2022
@nomisRev nomisRev reopened this Dec 5, 2022
@nomisRev
Copy link
Member Author

nomisRev commented Dec 5, 2022

This didn't happen in #2795, and needs to still happen. A couple fixes have to be made to parTraverse in order to preserve context in a similar was as KotlinX Coroutine does.

This can however happen in 1.x.x straight away, so I am removing Arrow 2.0 from the issue name.

@nomisRev nomisRev changed the title [Arrow 2.0] Replace parTraverse with parMap Deprecate parTraverse in favor of parMap Dec 5, 2022
@nomisRev nomisRev assigned nomisRev and unassigned Atternatt Dec 5, 2022
@thejeff77
Copy link

The documentation does not mention deprecation or the new method FYI.

https://old.arrow-kt.io/docs/apidocs/arrow-fx-coroutines/arrow.fx.coroutines/par-traverse-n.html

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