Skip to content

CLI process does not get a chance to finish

Currently when you use CTRL+C the process is killed because the CancelKeyPress return immediately. We should add e.Cancel = true.

var execThread = TapThread.Current;
Console.CancelKeyPress += (s, e) =>
{
    e.Cancel = true;
    execThread.Abort();
};
Edited by Vivienne Spence