mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Add notify function to network interface
This commit is contained in:
committed by
stuckinaboot
parent
cdfcdd528e
commit
f7d1bb3a89
@ -41,3 +41,9 @@ class INetwork(ABC):
|
||||
:param *args: one or many multiaddrs to start listening on
|
||||
:return: True if at least one success
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def notify(self, notifee):
|
||||
"""
|
||||
:param notifee: object implementing Notifee interface
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user