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

Feature Request: Streamlined approach for Behavior Factory #1444

Closed
Roiocam opened this issue Aug 23, 2024 · 0 comments · Fixed by #1445
Closed

Feature Request: Streamlined approach for Behavior Factory #1444

Roiocam opened this issue Aug 23, 2024 · 0 comments · Fixed by #1445

Comments

@Roiocam
Copy link
Member

Roiocam commented Aug 23, 2024

Motivation

avoid annoying method call

// current creation
Behaviors.receiveMessage(e -> {
    forwardRef.tell(e);
    return Behaviors.same();
});


// expect feature
Behaviors.receiveMessageSame(msg -> forwardRef.tell(msg));
Roiocam added a commit to Roiocam/pekko that referenced this issue Aug 23, 2024
Roiocam added a commit to Roiocam/pekko that referenced this issue Aug 23, 2024
pjfanning pushed a commit that referenced this issue Aug 28, 2024
* feat: streamlined approach for Behaviors #1444

* rename method

* scaladsl and test

* simpler test

* add @SInCE annotation
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 a pull request may close this issue.

1 participant