你看看第二行,我的逻辑比你的定义的函数多了一个while true,这个地方就导致无法并行了
async def do_while_true_tasks(name):
while True:
print(f'# Project <{name}> starts.')
for i in range(5):
await do_cpu_intense_unit_work(f'project {name} -> step {i}')
await asyncio.sleep(0)
print(f'# Project <{name}> ends.')
【 在 ToSimplicity 的大作中提到: 】
: 你能来个最小可运行实例么? 不明白你这名话的具体含义
--
FROM 112.45.96.*