User overridable callback: By default it disposes of all children and then calls postStop()
.
User overridable callback: By default it disposes of all children and then calls postStop()
.
the Throwable that caused the restart to happen
optionally the current message the actor processed when failing, if applicable
Is called on a crashed Actor right BEFORE it is restarted to allow clean up of resources before Actor is terminated. By default it terminates all children and calls postStop()
(preRestart: StringAdd).self
(preRestart: StringFormat).self
(preRestart: ArrowAssoc[PreRestart]).x
(Since version 2.10.0) Use leftOfArrow
instead
(preRestart: Ensuring[PreRestart]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Mix this into your TypedActor to be able to hook into its lifecycle