def _handle_loopback_safe(self, data):
"""
Handle incoming messages in the _loopback_safe socket.
"""
method, args, kwargs = dill.loads(data)
try:
response = getattr(self, method)(*args, **kwargs)
except Exception as error:
yield format_method_exception(error, method, args, kwargs)
raise
yield response
评论列表
文章目录