From e82faec185fbe5977a213c7d9d1b9fa878a86939 Mon Sep 17 00:00:00 2001 From: Muukii Date: Thu, 12 Dec 2024 09:13:20 +0900 Subject: [PATCH] Update --- Sources/Verge/Store/StoreDriverType.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Sources/Verge/Store/StoreDriverType.swift b/Sources/Verge/Store/StoreDriverType.swift index c827babadb..e87bf9627d 100644 --- a/Sources/Verge/Store/StoreDriverType.swift +++ b/Sources/Verge/Store/StoreDriverType.swift @@ -467,11 +467,13 @@ extension StoreDriverType { return try mutation(&ref) } - return result - + let box = UnsafeSendableStruct(result) + + return box.send() } - return result + let box = UnsafeSendableStruct(result) + return box.send() } await self.waitUntilAllEventConsumed()