1
0

interface: add comment

This commit is contained in:
SomberNight
2019-05-25 05:20:21 +02:00
parent 3b445d7248
commit e1c1a9d6a2

View File

@@ -107,6 +107,8 @@ class NotificationSession(RPCSession):
msg_id = next(self._msg_counter)
self.maybe_log(f"<-- {args} {kwargs} (id: {msg_id})")
try:
# note: RPCSession.send_request raises TaskTimeout in case of a timeout.
# TaskTimeout is a subclass of CancelledError, which is *suppressed* in TaskGroups
response = await asyncio.wait_for(
super().send_request(*args, **kwargs),
timeout)