diff --git a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/BaseRenderContext.kt b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/BaseRenderContext.kt index da6b3c310..4d8420170 100644 --- a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/BaseRenderContext.kt +++ b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/BaseRenderContext.kt @@ -249,10 +249,14 @@ BaseRenderContext.renderChild( * Ensures a [Worker] that never emits anything is running. Since [worker] can't emit anything, * it can't trigger any [WorkflowAction]s. * - * If your [Worker] does not output anything, then simply use [runningSideEffect]. + * If your [Worker] does not output anything, then simply use [BaseRenderContext.runningSideEffect]. * * @param key An optional string key that is used to distinguish between identical [Worker]s. */ +@Deprecated( + message = "Use [BaseRenderContext.runningSideEffect] instead.", + replaceWith = ReplaceWith(expression = "runningSideEffect(key) { ... }", "") +) public inline fun , PropsT, StateT, OutputT> BaseRenderContext.runningWorker( worker: W,