Created
May 26, 2021 11:41
-
-
Save osnipezzini/75c0d18f98cc5db90e56efdac60dc9c8 to your computer and use it in GitHub Desktop.
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
// Versão compacta | |
if (pids.Count > 0) | |
pids.ForEach(async pid => await service.KillProcAsync(pid)); | |
#Versao simples | |
if (pids.Count > 0) | |
{ | |
foreach (int pid in pids) | |
{ | |
await service.KillProcAsync(pid); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment