asyncio.AbstractEventLoop.set_task_factory()

AbstractEventLoop.set_task_factory(factory)

Set a task factory that will be used by AbstractEventLoop.create_task().

If factory is None the default task factory will be set.

If factory is a callable, it should have a signature matching (loop, coro), where loop will be a reference to the active event loop, coro will be a coroutine object. The callable must return an asyncio.Future compatible object.

New in version 3.4.4.

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

Please login to continue.