Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1369

Switching project to typed

$
0
0

@charpov wrote:

I’m switching a small project from untyped actors to typed actors. I’m struggling with the fact that my untyped actors change ("become") actors with a different protocol. With typed actors, onMessage is restricted to produce a Behavior[T] for the same T (as far as I can tell, or a super type of T using narrow). I end up with actors that can only meaningfully handle a subset of their message type, and with actors sharing parts of their protocols. The application works, but uses actors with types too broad for their actual behaviors, and I feel I’m not getting the type safety I would expect from the switch.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1369

Trending Articles