3 ms·
what about aiofiles[0] for disk I/O? [0] https://github.com/Tinche/aiofiles https://github.com/Tinche/aiofiles
by gilad 4y ago
what about aiofiles[0] for disk I/O?
[0] https://github.com/Tinche/aiofiles https://github.com/Tinche/aiofiles
- m3047 4y agoNot sure. A cursory look suggests it runs file ops in a thread pool. The problem that I'm aware of is at a deeper level and has to do with the ability (or lack thereof) to set nonblocking on file descriptors associated with disk files.
- nerdponx 4y agoYour look is correct, it basically wraps file i/o in to_thread().