We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96cbb50 commit be628acCopy full SHA for be628ac
asyncio_slow/asyncio_slow.py
@@ -115,7 +115,7 @@ def async(coro):
115
return Task(coro)
116
117
118
-class Wait(Future):
+class _Wait(Future):
119
120
def __init__(self, n):
121
Future.__init__(self)
@@ -133,12 +133,11 @@ def __call__(self):
133
134
def wait(coro_list, loop=_def_event_loop):
135
136
- w = Wait(len(coro_list))
+ w = _Wait(len(coro_list))
137
138
for c in coro_list:
139
t = async(c)
140
t.add_done_callback(lambda val: w._done())
141
- loop.call_soon(t)
142
143
return w
144
0 commit comments