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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy