Does asyncio supports asynchronous I/O for file operations?

CthUlhUzzz picture CthUlhUzzz · Jan 10, 2016 · Viewed 24.2k times · Source

Does asyncio supports asynchronous I/O for file operations? If yes, how I can use this in Python 3.5 with async/await syntax code?

Answer

Andrew Svetlov picture Andrew Svetlov · Jan 10, 2016

Most operating systems don't support asynchronous file operations. That's why asyncio doesn't support them either.

See the asyncio wiki for further explanation.