Repository navigation
Add to_agen wrapper and aiofiles.os.walk and aiofiles.os.fwalk. - #193
stankudrow wants to merge 16 commits into
Conversation
84b6491 to
0faf5b5
Compare
|
Apologies. I have a small baby nowadays. So the original sync |
Hello and no need for apologies, au contraire, congratulations. |
b19fc7e to
e755f03
Compare
e755f03 to
a614045
Compare
That PR has been merged now, can we please merge this one as well? 🙂 |
2df49e8 to
8afdb68
Compare
57be981 to
a69548b
Compare
os.walk.
a69548b to
cd3f7ae
Compare
os.walk.to_agen wrapper and aiofiles.os.walk.
|
Thanks for your patience. I'm going to review this in the next couple of days. |
I wouldn't go through gymnastics to make this work - we know when we're wrapping a generator and when an ordinary function. Two functions are perfectly fine IMO. |
to_agen wrapper and aiofiles.os.walk.to_agen wrapper and aiofiles.os.walk and aiofiles.os.fwalk.
…nough esp for Windows)
|
I'm very unconvinced by the implementation of Let me think about doing this in a better way. Bridging async and sync is going to be a little tricky here. |
Closes #160 .
Also may close #167 .
Potentially closes #207 .
Features:
to_agenfor wrapping synchronous generators;wrapuses asyncio.to_thread under the hood because Python3.9 is minimum version;os.walkandos.fwalk(Linux only) are added (to_agenmade it possible)