asyncio.AbstractEventLoop.create_task()

AbstractEventLoop.create_task(coro)

Schedule the execution of a coroutine object: wrap it in a future. Return a Task object.

Third-party event loops can use their own subclass of Task for interoperability. In this case, the result type is a subclass of Task.

This method was added in Python 3.4.2. Use the async() function to support also older Python versions.

New in version 3.4.2.

doc_python
2016-10-07 17:26:29
Comments
Leave a Comment

Please login to continue.