Posts by Tammo Sminia

How to get an ActorContext from Akka testKit

Posted on by  
Tammo Sminia

In Akka Typed we need an ActorContext to create new actors.

This poses some problems if we want to create an actor inside a class that’s not an actor. We can pass around an ActorContext from a (higher level) actor. But if this is a longer-lived class, we have to keep in mind that this ActorContext is only valid during construction. So it’s generally frowned upon to pass around the ActorContext.

Continue reading →

shadow-left