Open tvoinarovskyi opened 8 years ago
set_exception_handler
is not a signal, it's a handler (ie we can't set multiple handlers, just override it). It's not designed to perform application logic, but for logging, alerting, etc. It should react on unexpected
problems, rather than expected callbacks.
Currently the return handler (
Channel.set_return_handler
) has a strange default. From docs:This is bad practice, and the documentation should not recommend using
BaseEventLoop.set_exception_handler
it in any way. I think a null handler, that just logs the return is more sensible.