I am developing an application that mainly consists of services, which are threads with custom execution loops.
One of the services should spawn subprocesses, and I really donβt understand whether this is really or not. The official documentation is mixed. Namely, he says both asyncio supports running subprocesses from different threads and An event loop must run in the main thread in the same section.
How is it generally possible to start a subprocess from different threads if the loop cycle should be executed in the main thread?
source share