uasyncio create_task methods #10415
-
|
Hi, What is the best way to create a task from a coro and schedule it to run? or What is the difference between those two methods? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Use micropython/extmod/uasyncio/core.py Lines 241 to 245 in 699477d |
Beta Was this translation helpful? Give feedback.
-
|
As a general point it is rarely necessary to call
See uasyncio tutorial. |
Beta Was this translation helpful? Give feedback.
Use
uasyncio.create_task(). TheLoop.create_task()method is just a wrapper around it.micropython/extmod/uasyncio/core.py
Lines 241 to 245 in 699477d