Behavior in receiveSignal


I’am experimenting with akka-actor-typed 2.5.19. I have an actor (behavior) which is supervised with a restart strategy.
The actor throws an Exception which cause PreRestart signal.

A part for handling the signal:

	receiveSignal {
    	case (context, PreRestart) =>          

RestartSupervisor will start initial behavior after restart:
Behavior.validateAsInitial(Behavior.start(initial, ctx))

What is happening with the behevior returned in receiveSignal?
Is it used anywhere ?


For PreStart (and PostStop) signal the returned behavior isn’t used.