py-libp2p/libp2p/network/typing.py

6 lines
159 B
Python
Raw Normal View History

2019-08-05 10:35:56 +08:00
from typing import Awaitable, Callable
2019-08-05 11:22:44 +08:00
from libp2p.stream_muxer.abc import IMuxedStream
2019-08-05 10:35:56 +08:00
GenericProtocolHandlerFn = Callable[[IMuxedStream], Awaitable[None]]