https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.parallelloopstate.isstopped?view=netframework-4.8.1&viewFallbackFrom=net-10.0
ParallelLoopState.IsStopped Property (System.Threading.Tasks) | Microsoft Learn
Gets whether any iteration of the loop has called the Stop() method.
property systemthreadingtasksmicrosoftlearn