We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fff0b0 commit 711dd39Copy full SHA for 711dd39
1 file changed
extmod/uasyncio/core.py
@@ -215,20 +215,20 @@ def run(coro):
215
216
217
class Loop:
218
- def create_task(self, coro):
+ def create_task(coro):
219
return create_task(coro)
220
221
- def run_forever(self):
+ def run_forever():
222
run_until_complete()
223
# TODO should keep running until .stop() is called, even if there're no tasks left
224
225
- def run_until_complete(self, aw):
+ def run_until_complete(aw):
226
return run_until_complete(_promote_to_task(aw))
227
228
- def close(self):
+ def close():
229
pass
230
231
232
# The runq_len and waitq_len arguments are for legacy uasyncio compatibility
233
def get_event_loop(runq_len=0, waitq_len=0):
234
- return Loop()
+ return Loop
0 commit comments