summaryrefslogtreecommitdiff
path: root/docs/library
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2021-02-12 14:11:18 +1100
committerDamien George <damien@micropython.org>2021-02-13 15:11:17 +1100
commit7ed99544e4cc1c09bd5abf9f54869c3122fa033b (patch)
tree768869bfd2e8950906a47d2a6d62d613e93ba60d /docs/library
parentd128999938d6b44f52f4d0c6e1f5169ab3c1e7a5 (diff)
extmod/uasyncio: Add asyncio.current_task().
Matches CPython behavior. Fixes #6686
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/uasyncio.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/library/uasyncio.rst b/docs/library/uasyncio.rst
index a81e532d7..3316f908d 100644
--- a/docs/library/uasyncio.rst
+++ b/docs/library/uasyncio.rst
@@ -40,6 +40,10 @@ Core functions
Returns the corresponding `Task` object.
+.. function:: current_task()
+
+ Return the `Task` object associated with the currently running task.
+
.. function:: run(coro)
Create a new task from the given coroutine and run it until it completes.