From 1e87a9cf6640dcfb10b5dc639e4d4a432b50c23e Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Fri, 8 Dec 2023 11:56:56 -0500 Subject: [PATCH] Reference a coroutines feature request https://github.com/Kotlin/kotlinx.coroutines/issues/3978 --- .../kotlin/app/cash/redwood/treehouse/StandardAppLifecycle.kt | 1 + .../kotlin/app/cash/redwood/treehouse/PrepareEnvironmentJs.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/redwood-treehouse-guest/src/commonMain/kotlin/app/cash/redwood/treehouse/StandardAppLifecycle.kt b/redwood-treehouse-guest/src/commonMain/kotlin/app/cash/redwood/treehouse/StandardAppLifecycle.kt index a1dccc7dc8..e08118f6ce 100644 --- a/redwood-treehouse-guest/src/commonMain/kotlin/app/cash/redwood/treehouse/StandardAppLifecycle.kt +++ b/redwood-treehouse-guest/src/commonMain/kotlin/app/cash/redwood/treehouse/StandardAppLifecycle.kt @@ -63,6 +63,7 @@ public class StandardAppLifecycle( override fun start(host: Host) { check(!started) { "already started" } this.started = true + this.host = host this.broadcastFrameClock = BroadcastFrameClock { host.requestFrame() } this.frameClock = broadcastFrameClock diff --git a/redwood-treehouse-guest/src/jsMain/kotlin/app/cash/redwood/treehouse/PrepareEnvironmentJs.kt b/redwood-treehouse-guest/src/jsMain/kotlin/app/cash/redwood/treehouse/PrepareEnvironmentJs.kt index 2cad9cbd28..68bbb31203 100644 --- a/redwood-treehouse-guest/src/jsMain/kotlin/app/cash/redwood/treehouse/PrepareEnvironmentJs.kt +++ b/redwood-treehouse-guest/src/jsMain/kotlin/app/cash/redwood/treehouse/PrepareEnvironmentJs.kt @@ -26,7 +26,7 @@ import kotlinx.coroutines.CoroutineExceptionHandler * * This assumes we're the [StandardAppLifecycle] owns the entire JS runtime. */ -@Suppress("INVISIBLE_MEMBER") +@Suppress("INVISIBLE_MEMBER") // https://github.com/Kotlin/kotlinx.coroutines/issues/3978 internal actual fun prepareEnvironment( coroutineExceptionHandler: CoroutineExceptionHandler, ) {