Equivalent of asyncio.Queues with worker “threads”

前端 未结 3 813
日久生厌
日久生厌 2020-12-23 10:09

I\'m trying to figure out how to port a threaded program to use asyncio. I have a lot of code which synchronizes around a few standard library Queues, basically like this: <

3条回答
  •  暖寄归人
    2020-12-23 10:40

    Here's what I use in production, moved to gist: https://gist.github.com/thehesiod/7081ab165b9a0d4de2e07d321cc2391d

提交回复
热议问题