23 lines
344 B
Python
23 lines
344 B
Python
import trio
|
|
import tractor
|
|
|
|
|
|
async def main() -> None:
|
|
'''
|
|
Pause in the root actor to exercise its debugger REPL.
|
|
|
|
'''
|
|
async with tractor.open_root_actor(
|
|
debug_mode=True,
|
|
):
|
|
|
|
await trio.sleep(0.1)
|
|
|
|
await tractor.pause()
|
|
|
|
await trio.sleep(0.1)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
trio.run(main)
|