kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio: Add StreamReader.close() method.
rodzic
e8b99addbd
commit
610aa65cef
|
@ -89,6 +89,10 @@ class StreamReader:
|
|||
log.debug("StreamReader.readline(): res: %s", res)
|
||||
return res
|
||||
|
||||
def close(self):
|
||||
yield IOReadDone(self.s)
|
||||
self.s.close()
|
||||
|
||||
def __repr__(self):
|
||||
return "<StreamReader %r>" % self.s
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue