Как определить конец или «выполняется» задачи, которая выполняется в другой задаче. Как определить завершение или выполнение задачи: some_function.run ()?
async def service1():
while True:
...
ap_task = uasyncio.create_task(some_function.run())
await uasyncio.sleep(0)
async def main():
tasks = (service1, service2)
res = await uasyncio.funcs.gather(*tasks, return_exceptions=False)
uasyncio.run(main())