zenflow / composite-service

Compose multiple services into one
MIT License
7 stars 1 forks source link

With `onCrash` handler, use another way (besides throwing) to signal composite service to crash #26

Closed zenflow closed 3 years ago

zenflow commented 3 years ago

For example, returning a Symbol would work to signal that the composite service should crash. If there's an error in the onCrash, it should be logged and the service should be restarted.

zenflow commented 3 years ago

I'm fine with signaling to crash by throwing errors for now.