From 62508deace586acdb865d0f31d8f19c56e568952 Mon Sep 17 00:00:00 2001 From: crocsandcoffee Date: Tue, 2 May 2023 02:41:08 -0700 Subject: [PATCH] Mark runningWorker with no output as @Deprecated --- .../kotlin/com/squareup/workflow1/BaseRenderContext.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,