myActorRef does not have to be the same actor system, as long as it uses the same message. I feel like the typedSystem argument is redundant, because at most it is only used to infer the message type. In that case, passing in a type is good enough.
// Proposal
val scheduler = QuartzSchedulerTypedExtension[Message]()
This is causing me problem in Play, because when I use dependency injection to acquire an actorRef, using bindTypedActor, I only get an actorRef, and not a typed ActorSystem.
To construct a typed scheduler, we do this
Then, when we make schedules, we pass in the actor refs with the same message type again
myActorRef
does not have to be the same actor system, as long as it uses the same message. I feel like thetypedSystem
argument is redundant, because at most it is only used to infer the message type. In that case, passing in a type is good enough.This is causing me problem in Play, because when I use dependency injection to acquire an actorRef, using
bindTypedActor
, I only get an actorRef, and not a typed ActorSystem.