extmod/uasyncio: Implement Loop.stop() to stop the event loop.

This commit is contained in:
Damien George
2020-03-30 14:58:13 +11:00
parent 711dd392d3
commit b389bc0afa
4 changed files with 74 additions and 2 deletions

View File

@@ -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.