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()