In Akka, is ActorContext thread safe?

2019-07-21 16:38发布

问题:

As per title, can an ActorContext extracted from within an actor be safely used from multiple threads (even those where the actor is not currently executing), for the creation of actors meant to be children of the original actor?

回答1:

No. ActorContext is not thread-safe and shouldn't escape to other threads.