##// 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
core
extensions
external
kernel
lib
sphinxext
terminal
testing
utils
__init__.py Loading ...
__main__.py Loading ...
config.py Loading ...
conftest.py Loading ...
consoleapp.py Loading ...
display.py Loading ...
frontend.py Loading ...
html.py Loading ...
nbconvert.py Loading ...
nbformat.py Loading ...
parallel.py Loading ...
paths.py Loading ...
qt.py Loading ...