Since ActorRefFactory is implemented by both, ActorSystem and ActorContext, I am wondering whether it is safe to call buildFor from an actor passing actors’ context as an argument.
the docs leave it unspecified whether those are thread-safe or not so you should probably not assume thread-safety.
Why do you want to call those asynchronously in the first place? actorOf is mostly an asynchronous operation (especially actor class creation and calling of preStart etc is done asynchronously) so it seems running actorOf asynchronously would only complicates things.
ActorContext is one of the most common ActorRefFactory instances and for that it is not safe to call actorOf from any thread but the one handling a message to the actor. There actorOf spawns children to the actor which is part of the internal mutable actor state.