kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio: StreamReader.close() -> .aclose().
Note: CPython asyncio lacks .close() on StreamReader at all, only StreamWriter has it.pull/20/merge
rodzic
8c7a4194d7
commit
99fa203686
|
@ -85,7 +85,7 @@ class StreamReader:
|
|||
log.debug("StreamReader.readline(): res: %s", res)
|
||||
return res
|
||||
|
||||
def close(self):
|
||||
def aclose(self):
|
||||
yield IOReadDone(self.s)
|
||||
self.s.close()
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue