Skip to content

Commit

Permalink
WIP debugging test script
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jul 25, 2020
1 parent 34213ee commit d23b82d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions debugging/mp_debug.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import tractor
import trio


async def bubble():
print('IN BUBBLE')
await trio.sleep(.1)
await tractor.breakpoint()


async def bail():
getattr(doggy)


async def main():
"""The main ``tractor`` routine.
"""
async with tractor.open_nursery() as n:

# portal = await n.run_in_actor('future_self', bubble)
portal = await n.run_in_actor('future_self', bail)

# The ``async with`` will unblock here since the 'some_linguist'
# actor has completed its main task ``cellar_door``.


if __name__ == '__main__':
tractor.run(main, loglevel='info', debug_mode=True)

0 comments on commit d23b82d

Please sign in to comment.