Should we add a task_factory
parameter to asyncio.start_server
and EventLoop.create_server
?
These are used to accept connections and spawn tasks to handle them. From what I can see in the code, they ultimately delegate to EventLoop.create_task
. But since we have TaskGroups now, it’d be useful to be able to pass in a taskgroup.create_task
factory instead.
This would enable any web framework to handle graceful shutdown in an easier manner, and just seems like a useful thing to do.