kopia lustrzana https://github.com/micropython/micropython-lib
asyncio_micro: Support just plain "yield" for cooperative control yield.
rodzic
d0d2810b0c
commit
4af1cf5a30
|
@ -82,6 +82,9 @@ class EventLoop:
|
||||||
self.remove_writer(ret.obj.fileno())
|
self.remove_writer(ret.obj.fileno())
|
||||||
elif isinstance(ret, type_gen):
|
elif isinstance(ret, type_gen):
|
||||||
self.call_soon(ret)
|
self.call_soon(ret)
|
||||||
|
elif ret is None:
|
||||||
|
# Just reschedule
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
print(ret, type(ret))
|
print(ret, type(ret))
|
||||||
assert False
|
assert False
|
||||||
|
|
Ładowanie…
Reference in New Issue