sebnozzi / miniscript-web-term

Web-Terminal for MiniScript
Other
3 stars 1 forks source link

Need a way to abort a running script #2

Open JoeStrout opened 2 months ago

JoeStrout commented 2 months ago

It looks like while a script is running, MSTerminal sits in its runCycles method, until coopRunner reports isFinished().

So, maybe we could put an abort flag on MSTerminal, and have runCycles bail out when the runner is finished or when abort is true?

This is needed for https://github.com/JoeStrout/miniscript-tryit/issues/1

JoeStrout commented 1 month ago

Well I guess we should keep this open until I make a PR and it gets merged in.