I was looking at the Signals (Signals | Sanic Framework) because I wanted to know which signal was thrown.
One thing that would be nice to have is a visual flow of how/when the signals are sent. This would be helpful to know what to do.
Also, having a description of what the signal does and when it is triggered would be helpful too.
One reason I’m asking that is regarding the two following signals:
- http.lifecycle.response
- http.lifecycle.exception
I’m not sure, based on the doc, if the http.lifecycle.response
will be called when there is an exception, or, in case I want to handle closing the DB for instance, if I need to do that in both signals.