From d1e9b0a5a5a4fa9475496b424368e34eaae63b73 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sat, 10 Jun 2023 16:54:06 +0300 Subject: [PATCH] Add device lifecycle state --- .../kotlin/space/kscience/controls/client/DeviceClient.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controls-magix-client/src/commonMain/kotlin/space/kscience/controls/client/DeviceClient.kt b/controls-magix-client/src/commonMain/kotlin/space/kscience/controls/client/DeviceClient.kt index 53a7704..699a766 100644 --- a/controls-magix-client/src/commonMain/kotlin/space/kscience/controls/client/DeviceClient.kt +++ b/controls-magix-client/src/commonMain/kotlin/space/kscience/controls/client/DeviceClient.kt @@ -8,6 +8,7 @@ import kotlinx.coroutines.sync.withLock import space.kscience.controls.api.* import space.kscience.dataforge.context.Context import space.kscience.dataforge.meta.Meta +import space.kscience.dataforge.misc.DFExperimental import space.kscience.dataforge.names.Name import space.kscience.magix.api.MagixEndpoint import space.kscience.magix.api.broadcast @@ -95,6 +96,9 @@ public class DeviceClient( it.action == actionName && it.requestId == id }.result } + + @DFExperimental + override val lifecycleState: DeviceLifecycleState = DeviceLifecycleState.OPEN } /**