public sealed class Barrier : IMessage<Runnable.Types.Barrier>, IEquatable<Runnable.Types.Barrier>, IDeepCloneable<Runnable.Types.Barrier>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1 API class Runnable.Types.Barrier.
Barrier runnable blocks until all tasks in a taskgroup reach it.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `Runnable.Types.Barrier` class in the Batch v1 API allows tasks in a task group to synchronize by blocking until all tasks reach the barrier."],["This class has been implemented with different versions ranging from `1.0.0` to `2.13.0`, with `2.13.0` being the latest version."],["`Barrier` inherits from `Object` and implements `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage` interfaces, ensuring compatibility with different .NET functionalities."],["The `Barrier` class has two constructors: one default and one that takes another `Runnable.Types.Barrier` instance as a parameter for creating copies."],["Each `Barrier` instance can optionally have a name, identified by its index in the runnable list, which can be set and retrieved through the `Name` property of the class, a string type property."]]],[]]