kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio.core: Remove unused Sleep syscall.
It's unused since since sleep() was switched to yield an integer for delay.pull/68/merge
rodzic
3ef991c115
commit
61392cb641
|
@ -94,8 +94,6 @@ class EventLoop:
|
|||
log.debug("Coroutine %s yield result: %s", cb, ret)
|
||||
if isinstance(ret, SysCall1):
|
||||
arg = ret.arg
|
||||
if isinstance(ret, Sleep):
|
||||
delay = int(arg * 1000)
|
||||
if isinstance(ret, SleepMs):
|
||||
delay = arg
|
||||
elif isinstance(ret, IORead):
|
||||
|
@ -153,9 +151,6 @@ class SysCall1(SysCall):
|
|||
def __init__(self, arg):
|
||||
self.arg = arg
|
||||
|
||||
class Sleep(SysCall1):
|
||||
pass
|
||||
|
||||
class StopLoop(SysCall1):
|
||||
pass
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue