I'm not so familiar with Spring, but in general, to create an actor you need parent context, because now all coroutine builders use Structured concurrency approach and require CoroutineScope, so every Coroutine has parent scope
So general advice, if you want inject actor, such actor should be injected on some Scope with strict lifecycle to avoid Coroutine leak