cobald.daemon.runners.trio_runner module
- class cobald.daemon.runners.trio_runner.TrioRunner(asyncio_loop: AbstractEventLoop)[source]
Bases:
BaseRunnerRunner for coroutines with
trioAll active payloads are actively cancelled when the runner is closed.
- flavour: Any = <module 'trio' from '/home/docs/checkouts/readthedocs.org/user_builds/cobald/envs/latest/lib/python3.11/site-packages/trio/__init__.py'>
- async manage_payloads()[source]
Implementation of managing payloads when
run()This method must continuously execute payloads sent to the runner. It may only return when
stop()is called or if any orphaned payload return or raise. In the latter case,OrphanedReturnor the raised exception must re-raised by this method.