extmod/uasyncio: Add asyncio.current_task().
Matches CPython behavior. Fixes #6686
This commit is contained in:
committed by
Damien George
parent
d128999938
commit
7ed99544e4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user