forked from goodboy/tractor
1
0
Fork 0
tractor/examples/debugging/root_actor_breakpoint_forev...

19 lines
306 B
Python

import trio
import tractor
async def main(
registry_addrs: tuple[str, int]|None = None
):
async with tractor.open_root_actor(
debug_mode=True,
# loglevel='runtime',
):
while True:
await tractor.breakpoint()
if __name__ == '__main__':
trio.run(main)