Add "Cancel All Threads and Reset" to query toolbar
Consider adding another toolbar item for the Cancel All Threads and Reset (Ctrl+Shift+F5) menu option to the query toolbar. Hidden in the menu, it wasn't obvious that this existed, or what it was for. I've been closing LinqPad and re-launching regularly because I didn't realize this option existed.
User error? Yes. But a toolbar button would be helpful for others like me.
-
JW commented
This is useful, cos I use a separate thread in my script to do data patching (becos I don't want to slow down the server, I use Thread.sleep to space out the processing).
I realise that becos there's no dispose() implementation, my thread cannot be joined / terminated, thus if I press F5 (to execute another set of iteration), it will leak threads & CPU when viewed under Task Mgr