tiny-tokio-actor icon indicating copy to clipboard operation
tiny-tokio-actor copied to clipboard

a clean way for an actor to restart itself

Open dougcooper opened this issue 2 years ago • 1 comments

i might just be ignorant and abusing the design pattern, but i was trying to leverage the retry behavior of the library and was manually calling pre_restart from a handle method which results in a deadlock. instead im now creating a task on pre_start and then telling myself from the task to respawn the task such that pre_start only gets called once in the lifetime of the actor.

dougcooper avatar Jan 19 '23 11:01 dougcooper

Currently the restart only works to handle startup problems. It does not really work for handling message failures. This definitely needs to be addressed though!

fdeantoni avatar Mar 07 '23 10:03 fdeantoni