Most documentation refers to using ReceiveActor
and then methods such as Receive()
. However, some documentation refers to inheriting from TypedActor
and then using interfaces such as IHandle<MyMessageType>
.
Is it safe [as in, best practice/not deprecated] to use TypedActor
+ Interfaces or should I only be using ReceiveActor
? (Official documentation seems to be unclear on the subject)
TypedActor
will be marked as obsolete in version 1.3, and will be removed in version 1.5 (relevant pull request and issue).
There was a discussion a few years ago (as tomliversidge says in their answer) to rename it, but that plan didn't go ahead.
There is some discussion here with regards to this. Seems like it is being made obsolete in the Java/Scala Akka world so I'd probably stick to ReceiveActor unless TypedActor gives you something ReceiveActor doesn't
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With