tractor/examples/debugging/root_actor_breakpoint_forev...

19 lines
301 B
Python
Raw Normal View History

2021-02-24 18:39:14 +00:00
import trio
import tractor
async def main(
registry_addrs: tuple[str, int]|None = None
):
2021-02-24 18:39:14 +00:00
async with tractor.open_root_actor(
debug_mode=True,
# loglevel='runtime',
2021-02-24 18:39:14 +00:00
):
while True:
await tractor.pause()
if __name__ == '__main__':
2021-02-24 18:39:14 +00:00
trio.run(main)