Asyncio question
Frank Millman
frank at chagford.com
Fri Feb 21 23:58:16 EST 2020
On 2020-02-21 11:13 PM, Greg Ewing wrote:
> 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.
>
Perfect. Thanks so much.
Frank
More information about the Python-list
mailing list