From b17fab4e22da175fcfd24a6ca89a98641cee8511 Mon Sep 17 00:00:00 2001 From: Ryo Takeuchi Date: Tue, 21 Nov 2023 19:44:32 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20StateMachine=20=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/club/nito/core/ui/StateMachine.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 core/ui/src/commonMain/kotlin/club/nito/core/ui/StateMachine.kt diff --git a/core/ui/src/commonMain/kotlin/club/nito/core/ui/StateMachine.kt b/core/ui/src/commonMain/kotlin/club/nito/core/ui/StateMachine.kt new file mode 100644 index 00000000..3d918a7a --- /dev/null +++ b/core/ui/src/commonMain/kotlin/club/nito/core/ui/StateMachine.kt @@ -0,0 +1,12 @@ +package club.nito.core.ui + +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.SupervisorJob + +/** + * [StateMachine] + */ +public open class StateMachine { + public val stateMachineScope: CoroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate) +}