We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3451169 commit b55f956Copy full SHA for b55f956
Workflow/Sources/RenderContext.swift
@@ -148,4 +148,11 @@ extension RenderContext {
148
}
149
150
151
+
152
+ /// Generates a sink that allows sending the Workflow's output wrapped in an AnyWorkflowAction, allowing bypassing an
153
+ /// intermediate action.
154
+ public func makeOutputSink() -> Sink<WorkflowType.Output> {
155
+ return makeSink(of: AnyWorkflowAction.self)
156
+ .contraMap { AnyWorkflowAction<WorkflowType>(sendingOutput: $0) }
157
+ }
158
0 commit comments