-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling aclose()
on StreamReader ?
#30
Comments
I think the method should not exist. Are you running official uasyncio V2 or my fast_io fork? If you are running fast_io I suggest you re-test with the official version. If the official version fails, please could you raise an issue against MicroPython as I am not a maintainer for the official version. If only fast_io fails, please report back and I will remove the method. Please also see the new uasyncio. This has no def close(self):
pass
async def wait_closed(self):
# TODO yield?
self.s.close() |
I installed asyncio via Anyways, I write my code portable between cpython and micropython and the mentioned new uasyicio seems to make this easier. I will give it a try once released. |
In my opinion, having been involved in testing, the new version is excellent. It includes features from CPython 3.8 and a primary design aim is improving CPython compatibility. In due course I plan to change this repo to support the new version. The tutorial should only need minor changes. |
I am fairly sure now, that used library originaly stems from https://github.com/pfalcon/pycopy-lib and I as far as I can reconstruct it was pulled via |
When closing a StreamReader e.g. as in:
the program will crash. My code runs also on
cpython
and interestingly the corresponding StreamReader on that platform doesn't even have a.close()
method.So my the questions is: am I even supposed to call
sr.aclose()
(and if not why does it exist)?The text was updated successfully, but these errors were encountered: