mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-31 06:33:06 +02:00
always dispatch completion right after adding a store to the coordinator (allow stores to fully complete their run loop)
This commit is contained in:
@@ -239,7 +239,10 @@ public extension DataStack {
|
|||||||
|
|
||||||
_ = try self.addStorageAndWait(storage)
|
_ = try self.addStorageAndWait(storage)
|
||||||
|
|
||||||
completion(SetupResult(storage))
|
DispatchQueue.main.async {
|
||||||
|
|
||||||
|
completion(SetupResult(storage))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user