##// END OF EJS Templates
Run the prompt in a separate asyncio loop....
Run the prompt in a separate asyncio loop. This prevents crashes from situations where the user starts scheduling new coroutines that don't terminate. Like import asyncio async def func(): while True: pass asyncio.ensure_future(func()) This would freeze the event loop and can't even be cancelled by pressing control-c, because prompt_toolkit will never gain control from the event loop to process key bindings.
Jonathan Slenders -
r25276:7995e64e
Show More
Name Size Modified Last Commit Author
/ IPython / extensions
tests
__init__.py Loading ...
autoreload.py Loading ...
cythonmagic.py Loading ...
rmagic.py Loading ...
storemagic.py Loading ...
sympyprinting.py Loading ...