Partitioner Options Enum
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.
Specifies options to control the buffering behavior of a partitioner.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
public enum class EnumerablePartitionerOptions
[System.Flags] public enum EnumerablePartitionerOptions
[System.Flags] [System.Serializable] public enum EnumerablePartitionerOptions
[<System.Flags>] type EnumerablePartitionerOptions =
[<System.Flags>] [<System.Serializable>] type EnumerablePartitionerOptions =
Public Enum EnumerablePartitionerOptions
Create a partitioner that takes items from the source enumerable one at a time and does not use intermediate storage that can be accessed more efficiently by multiple threads. This option provides support for low latency (items will be processed as soon as they are available from the source) and provides partial support for dependencies between items (a thread cannot deadlock waiting for an item that the thread itself is responsible for processing).
Use the default behavior, which is to use buffering to achieve optimal performance.
Out-of-the-box partitioners are created with a set of default behaviors. For example, by default, some form of buffering and chunking will be used to achieve optimal performance in the common scenario where an IEnumerable<T> implementation is fast and non-blocking. These behaviors can be overridden by this enumeration by using the Partitioner.Create method.