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: convenience factories for Scala Try to StatusReply transform #31783

Merged
merged 3 commits into from
Dec 13, 2022

Conversation

johanandren
Copy link
Member

No description provided.

@johanandren johanandren changed the title feat: Two convenience factories for Scala Try to StatusReply transform feat: convenience factories for Scala Try to StatusReply transform Dec 8, 2022
*
* Also note that Akka does not contain pre-build serializers for arbitrary exceptions.
*/
def fromTryKeepException[T](aTry: Try[T]): StatusReply[T] = new StatusReply(aTry)
Copy link
Member

Choose a reason for hiding this comment

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

a better name than aTry?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just calling it status could work, same as the Try in the StatusReply itself.

Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

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

LGTM.

akka-actor/src/main/scala/akka/pattern/StatusReply.scala Outdated Show resolved Hide resolved
akka-actor/src/main/scala/akka/pattern/StatusReply.scala Outdated Show resolved Hide resolved
def fromTryKeepException[T](aTry: Try[T]): StatusReply[T] = new StatusReply(aTry)

/**
* Scala API: Turn a try into a status reply.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Scala API: Turn a try into a status reply.
* Scala API: Turn a Try into a status reply.

johanandren and others added 2 commits December 13, 2022 13:32
Co-authored-by: Enno Runne <458526+ennru@users.noreply.github.com>
@johanandren johanandren merged commit 38f3fd8 into main Dec 13, 2022
@johanandren johanandren deleted the wip-status-reply-from-try branch December 13, 2022 14:17
@johanandren johanandren added this to the 2.8.0-M2 milestone Dec 13, 2022
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.

None yet

4 participants