diff --git a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/Sink.kt b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/Sink.kt index b24294964..5d0d79b4f 100644 --- a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/Sink.kt +++ b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/Sink.kt @@ -85,7 +85,9 @@ internal suspend fun < ) { suspendCancellableCoroutine { continuation -> val resumingAction = object : WorkflowAction() { - override fun toString(): String = "sendAndAwaitApplication($action)" + // Pipe through debugging name to the original action. + override val debuggingName: String + get() = action.debuggingName override fun Updater.apply() { // Don't execute anything if the caller was cancelled while we were in the queue. diff --git a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkerWorkflow.kt b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkerWorkflow.kt index dedfa5902..24e09abeb 100644 --- a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkerWorkflow.kt +++ b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkerWorkflow.kt @@ -89,13 +89,12 @@ internal suspend fun runWorker( } private class EmitWorkerOutputAction( - private val worker: Worker<*>, - private val renderKey: String, + worker: Worker<*>, + renderKey: String, private val output: O, ) : WorkflowAction() { - override val debuggingName: String - get() = CommonKClassTypeNamer.uniqueName(EmitWorkerOutputAction::class) + - "(worker=$worker, key=$renderKey)" + override val debuggingName: String = + "EmitWorkerOutputAction(worker=$worker, key=$renderKey)" override fun Updater.apply() { setOutput(output)