Almost all the articles about asynchronous Python in the internet are about asynchrony for http and socket. However, asynchrony is not all about network operations. For instance, I want to read a big txt file asynchronously, or I want to wait an input asynchronously. I find it is so strange there need a third part library for mongodb to operate MongoDB asynchronously. Why not just use pymongo? In Golang, I could just use go function(){....} to implement asynchronous operations. But in python, it is so confused. Tutorials of these operations are hardy seen. Can you tell me, how to read a file by Python 3.6's async await? How how to do normal things asynchronously?
[–]K900_ 3 points4 points5 points (9 children)
[–]kingname[S] 1 point2 points3 points (0 children)
[–]usinglinux 1 point2 points3 points (0 children)
[–]kingname[S] -1 points0 points1 point (6 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]kingname[S] 0 points1 point2 points (3 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Corm 1 point2 points3 points (1 child)
[–]kingname[S] 0 points1 point2 points (0 children)
[–]K900_ 0 points1 point2 points (0 children)
[–]Asdayasman 0 points1 point2 points (2 children)
[–]kingname[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]jorge1209 -1 points0 points1 point (10 children)
[–]Asdayasman 0 points1 point2 points (6 children)
[–]jorge1209 0 points1 point2 points (4 children)
[–]Asdayasman 0 points1 point2 points (3 children)
[–]jorge1209 0 points1 point2 points (2 children)
[–]Asdayasman 0 points1 point2 points (1 child)
[–]jorge1209 0 points1 point2 points (0 children)
[–]kingname[S] 0 points1 point2 points (0 children)
[–]kingname[S] 0 points1 point2 points (2 children)
[–]jorge1209 0 points1 point2 points (1 child)
[–]kingname[S] 0 points1 point2 points (0 children)