forked from goodboy/tractor
1
0
Fork 0
tractor/examples/debugging/subactor_error.py

17 lines
292 B
Python
Raw Permalink Normal View History

2020-10-04 13:54:36 +00:00
import tractor
async def name_error():
getattr(doggypants)
async def main():
async with tractor.open_nursery() as n:
portal = await n.run_in_actor('name_error', name_error)
await portal.result()
if __name__ == '__main__':
tractor.run(main, debug_mode=True)