ParallelLoopResult Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides completion status on the execution of a Parallel loop.
public value class ParallelLoopResult
public struct ParallelLoopResult
type ParallelLoopResult = struct
Public Structure ParallelLoopResult
- Inheritance
Remarks
If IsCompleted returns true, then the loop ran to completion, such that all iterations of the loop were executed. If IsCompleted returns false and LowestBreakIteration returns null, a call to Stop was used to end the loop prematurely. If IsCompleted returns false and LowestBreakIteration returns a non-null integral value, Break was used to end the loop prematurely.
Properties
IsCompleted |
Gets whether the loop ran to completion, such that all iterations of the loop were executed and the loop didn't receive a request to end prematurely. |
LowestBreakIteration |
Gets the index of the lowest iteration from which Break() was called. |
Applies to
Thread Safety
All public members of ParallelLoopResult are thread safe and may be called from multiple threads concurrently.
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈