Add reset and close

This commit is contained in:
mhchia
2019-09-05 23:44:22 +08:00
parent 10415cb956
commit 207fa75d8f
2 changed files with 45 additions and 6 deletions

View File

@ -82,11 +82,10 @@ class IMuxedStream(ReadWriteCloser):
mplex_conn: IMuxedConn
@abstractmethod
async def reset(self) -> bool:
async def reset(self) -> None:
"""
closes both ends of the stream
tells this remote side to hang up
:return: true if successful
"""
@abstractmethod