kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio.synchro: Update for cur_coro -> cur_task rename in uasyncio.core.
rodzic
c279a8195f
commit
340b3772a7
|
@ -23,6 +23,6 @@ class Lock:
|
||||||
if not self.locked:
|
if not self.locked:
|
||||||
self.locked = True
|
self.locked = True
|
||||||
return True
|
return True
|
||||||
#print("putting", core.get_event_loop().cur_coro, "on waiting list")
|
#print("putting", core.get_event_loop().cur_task, "on waiting list")
|
||||||
self.wlist.append(core.get_event_loop().cur_coro)
|
self.wlist.append(core.get_event_loop().cur_task)
|
||||||
yield False
|
yield False
|
||||||
|
|
Ładowanie…
Reference in New Issue