Jelajahi Sumber

trying out wait and join

digital 7 tahun lalu
induk
melakukan
4b55a9ee03
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      network/__init__.py

+ 1 - 1
network/__init__.py

@@ -420,7 +420,7 @@ class Server(object):
         # stopped or crashed
         # maybe wait doesn't work, trying it out with join
         cur_task = await curio.current_task()
-        await curio.ignore_after(0.01,cur_task.join)
+        await curio.ignore_after(0.01,cur_task.wait)
 
 class Client(threading.Thread):
     """docstring for Client"""