util.NetworkRetryManager: better document API
This commit is contained in:
@@ -1820,7 +1820,8 @@ def event_listener(func):
|
|||||||
|
|
||||||
|
|
||||||
_NetAddrType = TypeVar("_NetAddrType")
|
_NetAddrType = TypeVar("_NetAddrType")
|
||||||
|
# requirements for _NetAddrType:
|
||||||
|
# - reasonable __hash__() implementation (e.g. based on host/port of remote endpoint)
|
||||||
|
|
||||||
class NetworkRetryManager(Generic[_NetAddrType]):
|
class NetworkRetryManager(Generic[_NetAddrType]):
|
||||||
"""Truncated Exponential Backoff for network connections."""
|
"""Truncated Exponential Backoff for network connections."""
|
||||||
|
|||||||
Reference in New Issue
Block a user