Skip to content

Commit e2716b4

Browse files
Make Flow.collectToSink public.
1 parent 3b1f13c commit e2716b4

File tree

1 file changed

+1
-3
lines changed
  • workflow-core/src/commonMain/kotlin/com/squareup/workflow1

1 file changed

+1
-3
lines changed

workflow-core/src/commonMain/kotlin/com/squareup/workflow1/Sink.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public fun <T1, T2> Sink<T1>.contraMap(transform: (T2) -> T1): Sink<T2> = Sink {
4444
* is a lot of contention on the workflow runtime the flow will be suspended while the action is
4545
* queued.
4646
*
47-
* This method is intended to be used from [BaseRenderContext.runningSideEffect].
48-
*
4947
* Example:
5048
* ```
5149
* context.runningSideEffect("collector") {
@@ -55,7 +53,7 @@ public fun <T1, T2> Sink<T1>.contraMap(transform: (T2) -> T1): Sink<T2> = Sink {
5553
* }
5654
* ```
5755
*/
58-
internal suspend fun <T, PropsT, StateT, OutputT> Flow<T>.collectToSink(
56+
public suspend fun <T, PropsT, StateT, OutputT> Flow<T>.collectToSink(
5957
actionSink: Sink<WorkflowAction<PropsT, StateT, OutputT>>,
6058
handler: (T) -> WorkflowAction<PropsT, StateT, OutputT>
6159
) {

0 commit comments

Comments
 (0)