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

add ActorContext.getChild that returns Optional #17635

Closed
rkuhn opened this issue Jun 2, 2015 · 3 comments
Closed

add ActorContext.getChild that returns Optional #17635

rkuhn opened this issue Jun 2, 2015 · 3 comments
Labels
Milestone

Comments

@rkuhn
Copy link
Contributor

rkuhn commented Jun 2, 2015

This works better with Java 8 lambdas (orElseGet instead of getOrElse).

@rkuhn rkuhn added this to the 2.4-M2 milestone Jun 2, 2015
@rkuhn rkuhn added 1 - triaged Tickets that are safe to pick up for contributing in terms of likeliness of being accepted t:core labels Jun 2, 2015
@patriknw patriknw modified the milestones: 2.4-M2, 2.4-M3 Jun 26, 2015
@patriknw patriknw modified the milestones: 2.4-M3, 2.4.0, 2.4.0-RC1 Aug 14, 2015
@patriknw
Copy link
Member

would be nice, but there is already a def getChild(name: String): ActorRef in AbstractActorContext. Rather messy to add yet another variant (getChildOptional).

Optional.ofNullable(getContext().getChild(name)) is good enough in my opinion.

@patriknw patriknw modified the milestones: will not fix, 2.4.0-RC1 Aug 18, 2015
@rkuhn rkuhn removed the 1 - triaged Tickets that are safe to pick up for contributing in terms of likeliness of being accepted label Mar 9, 2016
@He-Pin
Copy link
Member

He-Pin commented Oct 11, 2018

Still found I need this sometime, maybe with a getChildOptional? Or change it in Akka 3?

@patriknw
Copy link
Member

you could also use Akka Typed

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

No branches or pull requests

3 participants