mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 13:10:21 +01:00
extmod/uasyncio: Implement Loop.stop() to stop the event loop.
This commit is contained in:
@@ -251,13 +251,17 @@ Event Loop
|
||||
|
||||
.. method:: Loop.run_forever()
|
||||
|
||||
Run the event loop forever.
|
||||
Run the event loop until `stop()` is called.
|
||||
|
||||
.. method:: Loop.run_until_complete(awaitable)
|
||||
|
||||
Run the given *awaitable* until it completes. If *awaitable* is not a task
|
||||
then it will be promoted to one.
|
||||
|
||||
.. method:: Loop.stop()
|
||||
|
||||
Stop the event loop.
|
||||
|
||||
.. method:: Loop.close()
|
||||
|
||||
Close the event loop.
|
||||
|
||||
Reference in New Issue
Block a user