File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
workflow-core/src/main/java/com/squareup/workflow Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import kotlinx.coroutines.suspendCancellableCoroutine
2828 * A [Worker] is stopped when its parent [Workflow] finishes a render pass without running the
2929 * worker, or when the parent workflow is itself torn down.
3030 */
31+ @Deprecated(" Use runningSideEffect instead." )
3132abstract class LifecycleWorker : Worker <Nothing > {
3233
3334 /* *
Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ interface Worker<out OutputT> {
220220 * call, or can use the `key` parameter to [RenderContext.runningWorker] to prevent conflicts.
221221 * ```
222222 */
223+ @Deprecated(" Use runningSideEffect instead." )
223224 fun createSideEffect (
224225 block : suspend () -> Unit
225226 ): Worker <Nothing > = TypedWorker (TYPE_OF_NOTHING , flow { block() })
You can’t perform that action at this time.
0 commit comments