Skip to content

Commit 26d7657

Browse files
committed
asyncio_micro: Support just plain "yield" for cooperative control yield.
1 parent ae4fa7f commit 26d7657

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎asyncio_micro/asyncio_micro.py

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def run_forever(self):
8282
self.remove_writer(ret.obj.fileno())
8383
elif isinstance(ret, type_gen):
8484
self.call_soon(ret)
85+
elif ret is None:
86+
# Just reschedule
87+
pass
8588
else:
8689
print(ret, type(ret))
8790
assert False

0 commit comments

Comments
 (0)