Python
8
Вклад в тег
proc_img= img[y:y+h, x:x+w]
id = '1111111111'
search_order ={"orderId": id}
url = requests.post("https://siteapi/api/orders/search",json=search_order,headers=headers)
import asyncio
async def first():
await asyncio.sleep(30)
return (2)
async def second():
await asyncio.sleep(20)
return (1)
async def main():
print("Продолжаем")
for fut in asyncio.as_completed([first(), second()]):
resp = await fut
print(f'Ваш ответ:{resp}')
asyncio.run(main())