Would it be worthwhile to add subprojects under python-trio for various popular APIs
… gain the ability to run in "trio mode",
Not to suggest refactoring this all over again, but I've been thinking about #105 and #171. I think the _file_io stuff is actually pretty re-usable, even for asyncio (definitely much less scary than aiofiles anyway).
What do you think about ripping all of this back out, then making a python-trio/threaded-file-io or similar that supports creating both asyncio and trio threads (which I think is a fourth variant of #171 called *-libs-on-*, which we could also maybe apply to things like the stream API from #107).
Not to suggest refactoring this all over again, but I've been thinking about #105 and #171. I think the
_file_iostuff is actually pretty re-usable, even for asyncio (definitely much less scary than aiofiles anyway).What do you think about ripping all of this back out, then making a
python-trio/threaded-file-ioor similar that supports creating both asyncio and trio threads (which I think is a fourth variant of #171 called*-libs-on-*, which we could also maybe apply to things like the stream API from #107).