diff options
Diffstat (limited to 'extmod/uasyncio/core.py')
| -rw-r--r-- | extmod/uasyncio/core.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extmod/uasyncio/core.py b/extmod/uasyncio/core.py index 6a84b0982..d74763f6a 100644 --- a/extmod/uasyncio/core.py +++ b/extmod/uasyncio/core.py @@ -264,6 +264,10 @@ def get_event_loop(runq_len=0, waitq_len=0): return Loop +def current_task(): + return cur_task + + def new_event_loop(): global _task_queue, _io_queue # TaskQueue of Task instances |
