ActionCollectionConfiguring
@MainActor
public protocol ActionCollectionConfiguring<InteractorType, ContentType> : ActionConfiguring
A protocol that represents the configuration for a collection of Action objects, either a group of actions running in parallel, or a sequence of actions running in serial order.
Types conforming to this protocol hold multiple ActionConfiguring child configurations under one umbrella. When perform(with:sequenceOutputs:) is called on an ActionPerformableCollection object, it runs the child actions. If this object is an ActionGroup, the results are then merged by the merger object into a single ContentType value, which the group’s output conduit passes on to the next step in the sequence, if one exists.
ActionGroupConfiguration is the primary concrete conforming type.
-
The child action configurations that the group runs in parallel.
Declaration
Swift
@MainActor var actions: [any ActionConfiguring<InteractorType, ContentType>] { get } -
Identifies whether this configuration represents a group or a standalone action.
Declaration
Swift
@MainActor var configurationType: ActionConfigurationType { get } -
An object that merges the parallel child action results into a single
ContentTypevalue passed on through the group’s output conduit. Required for the group to participate in the sequence. This property is unused in sequences.Declaration
Swift
@MainActor var merger: (any ActionResultsMerging<ContentType>)? { get } -
Determines whether a group’s children are included in the
.group(results:)origin recorded alongside its merged result. This property is unused in sequences.Declaration
Swift
@MainActor var shouldSaveChildResults: Bool { get }
View on GitHub