Refactor model

This commit is contained in:
Guille Gonzalez
2026-01-01 12:41:56 +01:00
parent fbfc1d0ecf
commit e66eeb4564
19 changed files with 1845 additions and 12 deletions

View File

@@ -19,8 +19,8 @@ final class ReadWriteLockIsolated<Value>: @unchecked Sendable {
}
}
func withValue<T: Sendable>(
_ operation: @Sendable (inout Value) throws -> T
func withValue<T>(
_ operation: (inout Value) throws -> T
) rethrows -> T {
try self.lock.sync {
var value = self._value