ExecutionDataflowBlockOptions.SingleProducerConstrained Property
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.
Gets whether code using the dataflow block is constrained to one producer at a time.
public:
property bool SingleProducerConstrained { bool get(); void set(bool value); };
public bool SingleProducerConstrained { get; set; }
member this.SingleProducerConstrained : bool with get, set
Public Property SingleProducerConstrained As Boolean
Property Value
Returns Boolean.
Remarks
This property defaults to false, such that the block may be used by multiple producers concurrently. This property should only be set to true if the code using the block can guarantee that it will only ever be used by one producer (e.g. a source linked to the block) at a time, meaning that methods like Post, Complete, Fault, and OfferMessage will never be called concurrently. Some blocks may choose to capitalize on the knowledge that there will only be one producer at a time in order to provide better performance.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈