On 12/3/21 16:04, Terry Wilson wrote:
> When using eventlet monkey_patch()'d code, greenthreads can be
> blocked on connection for several seconds while the database
> contents are parsed. Eventlet recommends adding a sleep(0) call
> to cooperatively yield in cpu-bound code. asyncio code has
>
When using eventlet monkey_patch()'d code, greenthreads can be
blocked on connection for several seconds while the database
contents are parsed. Eventlet recommends adding a sleep(0) call
to cooperatively yield in cpu-bound code. asyncio code has
asyncio.sleep(0). This patch adds an API method