mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-09-10 03:41:53 +02:00
cleanup
This commit is contained in:
@@ -27,10 +27,10 @@ extension Modern.PokedexDemo {
|
||||
|
||||
try await Modern.PokedexDemo.dataStack.async.perform { transaction -> Void in
|
||||
|
||||
let json: Dictionary<String, Any> = try self.parseJSON(
|
||||
let json: Dictionary<String, any Sendable> = try self.parseJSON(
|
||||
try JSONSerialization.jsonObject(with: data, options: [])
|
||||
)
|
||||
let results: [Dictionary<String, Any>] = try self.parseJSON(
|
||||
let results: [Dictionary<String, any Sendable>] = try self.parseJSON(
|
||||
json["results"]
|
||||
)
|
||||
_ = try transaction.importUniqueObjects(
|
||||
@@ -57,7 +57,7 @@ extension Modern.PokedexDemo {
|
||||
|
||||
let speciesPersistentID = try await Modern.PokedexDemo.dataStack.async.perform { transaction in
|
||||
|
||||
let json: Dictionary<String, Any> = try self.parseJSON(
|
||||
let json: Dictionary<String, any Sendable> = try self.parseJSON(
|
||||
try JSONSerialization.jsonObject(with: data, options: [])
|
||||
)
|
||||
guard
|
||||
@@ -102,7 +102,7 @@ extension Modern.PokedexDemo {
|
||||
|
||||
try self.parseJSON(
|
||||
try JSONSerialization.jsonObject(with: data, options: [])
|
||||
) as [String: Any]
|
||||
) as [String: any Sendable]
|
||||
}
|
||||
)
|
||||
guard !forms.isEmpty else {
|
||||
|
||||
@@ -15,6 +15,7 @@ func withMainActorImmediate(
|
||||
) {
|
||||
|
||||
if #available(iOS 26.0, *) {
|
||||
|
||||
Task.immediate(operation: task)
|
||||
}
|
||||
else if Thread.isMainThread {
|
||||
|
||||
Reference in New Issue
Block a user