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

Converted ExtSimAdapter to typed. #1095

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

staudtMarius
Copy link
Member

Resolves #1094

@staudtMarius staudtMarius added the pekko typed Conversions from akka classic to typed label Jan 8, 2025
@staudtMarius staudtMarius self-assigned this Jan 8, 2025
Copy link
Member

@sebastian-peter sebastian-peter left a comment

Choose a reason for hiding this comment

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

Maybe you're right and we should wait for Scala 3 here. It's also a bit annoying that we can't create the behavior with type parameter Request, which would then also be possible.

Props(
new ExtSimAdapter(scheduler)
)
sealed trait AdapterMessage extends ControlResponseMessageFromExt
Copy link
Member

Choose a reason for hiding this comment

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

Why not call this Request, which is a pekko convention we took over? So then, from other classes one would specify the message type as ExtSimAdapter.Request

Comment on lines +208 to 211
val extSimAdapter = context.spawn(
ExtSimAdapter(scheduler),
s"$index",
)
Copy link
Member

Choose a reason for hiding this comment

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

Please pick an expressive actor name here. Beforehand, simonaActorOf took care of that by prepending the class name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pekko typed Conversions from akka classic to typed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert ExtSimAdapter to typed
2 participants