DEV Community

zehra hindioğlu
zehra hindioğlu

Posted on

Using asyncio.create_task()

In Python, asyncio.create_task() is a function provided by the asyncio library. It is used to create a new asynchronous task and schedule it to be run in the event loop. The function returns an asyncio.Task object, which represents the scheduled coroutine and allows you to track its progress or result. I want to show you my own example:

import and create class:

Image description

Image description

Top comments (0)