Код: Выделить всё
import asyncio
import time
executor = ThreadPoolExecutor(max_workers=16)
exitProgram=False
pe_open=True
async def live_feed():
#some logic
while not exitProgram:
# some more logic
await asyncio.sleep(0.007)
print(exitProgram)
async def calculate_PE(ltp):
#some logic
while pe_open:
if x
Подробнее здесь: [url]https://stackoverflow.com/questions/78817597/i-am-calling-this-python-async-functions-corectly[/url]