這意味著在asyncio 中如果呼叫了f = file('xx') f.read() 會阻塞事件迴圈。 本篇簡述如何用asyncio.Future 物件來封裝檔案的非同步讀寫。 程式碼在.
確定! 回上一頁