From b389bc0afaaa5a16dc11daaed056d89ea3da3b83 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 30 Mar 2020 14:58:13 +1100 Subject: extmod/uasyncio: Implement Loop.stop() to stop the event loop. --- docs/library/uasyncio.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/library') diff --git a/docs/library/uasyncio.rst b/docs/library/uasyncio.rst index ebe0c34eb..ff3232ebd 100644 --- a/docs/library/uasyncio.rst +++ b/docs/library/uasyncio.rst @@ -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. -- cgit v1.2.3