kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio.core: Add stop() method for loop.
To allow to stop loop from a callback function.pull/183/head
rodzic
bf327f755a
commit
241e7b1a3b
|
@ -128,6 +128,9 @@ class EventLoop:
|
|||
self.call_soon(_run_and_stop())
|
||||
self.run_forever()
|
||||
|
||||
def stop(self):
|
||||
self.call_soon((lambda: (yield StopLoop(0)))())
|
||||
|
||||
def close(self):
|
||||
pass
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue