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