These are chat archives for petabridge/akka-bootcamp
base.PostStop(), but in
PreStart()you don't call the base implementation of that... since
base.PostStop()is called explicitly does that mean it's required?
ActorSystem.Shutdowncall anywhere on the Form_Closing handler. That would solve that problem.
PoisonPilllooks reasonable at least for
_chartingActorand probably for Unit 3 as well.
Context.SetReceiveTimeout(timeout)- this method will send a
ReceiveTimeoutmessage to actor itself, if it haven't received any message for
timeouttime - then all what's needed is handling this message i.e. by stopping an actor
Tellrequest to that actor)
dispatcher-throughputsetting that you can configure)
MessageDispatcheras an abstraction that wraps the
Actionexecutes the loop and pushes messages into your actor's
ActorCelland how actor restarts actually work
MessageDispatcherwraps the built-in CLR
ThreadPool, and the threadcount there is managed totally by the CLR
MessageDispatchers like the
ForkJoinDispatcherwhich use their own threads separate from the
ForkJoinDispatchergets used in areas where you have soft real-time requirements. The entire heartbeat system for Akka.Remote and Akka.Cluster rely on them, for instance