Created
August 30, 2021 07:33
-
-
Save dck-jp/3c978b4217f5b4aef5ece39bc4ea719e to your computer and use it in GitHub Desktop.
bugfix of ProcessX/Zx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static readonly Lazy<CancellationTokenSource> _terminateTokenSource = new Lazy<CancellationTokenSource>(() => | |
{ | |
var source = new CancellationTokenSource(); | |
Console.CancelKeyPress += (sender, e) => { source.Cancel(); e.Cancel = true; }; | |
return source; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment