Asyncio question

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Feb 21 16:13:33 EST 2020


On 21/02/20 7:59 pm, Frank Millman wrote:
> My first attempt was to create a background task for each session which 
> runs for the life-time of the session, and 'awaits' its queue. It works, 
> but I was concerned about having a lot a background tasks active at the 
> same time.

The whole point of asyncio is to make tasks very lightweight, so you
can use as many of them as is convenient without worries. One task
per client sounds like the right thing to do here.

-- 
Greg


More information about the Python-list mailing list