ActionSequenceConduit
@MainActor
public struct ActionSequenceConduit<ContentType> : ActionSequenceConduiting where ContentType : ContentTypeable
This object provides a unidirectional flow along an ActionSequence chain of Actions, optionally transforming output data from the previous Action before sending it on to the next Action.
-
Declaration
Swift
@MainActor public var outputAction: (any ActionPerformable<ContentType>)? -
Declaration
Swift
@MainActor public var transformer: (any ContentTransformable<ContentType, ContentType>)? -
Undocumented
Declaration
Swift
@MainActor public init(outputAction: (any ActionPerformable<ContentType>)? = nil, transformer: (any ContentTransformable<ContentType, ContentType>)? = nil) -
receive(input:AsynchronoussequenceOutputs: ) Declaration
Swift
@MainActor public func receive(input: ContentType, sequenceOutputs: ActionCollectionResults<ContentType>) async -> Result<ActionCollectionResults<ContentType>, Error>
View on GitHub