tractor/examples/debugging/root_actor_breakpoint.py

16 lines
201 B
Python
Raw Permalink Normal View History

2020-10-03 23:35:18 +00:00
import trio
import tractor
async def main():
await trio.sleep(0.1)
await tractor.breakpoint()
await trio.sleep(0.1)
if __name__ == '__main__':
tractor.run(main, debug_mode=True)