psysh
psysh copied to clipboard
Possibility to cancel long running operations with Ctrl-C
When calling long time running operations a nice feature could be the chance to cancel that operation without exiting from the shell, it can be done with Ctrl-C or any signal that will tell the shell it have to kill the spawned worker but not the main thread, for then creating a new worker with the state from the main worker, like the savegame function but with rollback.
:+1: Yes, let's :)
Experiment in development here => https://github.com/bobthecow/psysh/pull/163
..would this have the happy side-effect of dropping back to the prompt instead of quitting, or should I open a new ticket for that?
So whats the progress or alternative to this? Do we have any workaround than Ctrl + C?
Not right now, but pull requests are welcome :)