Created
September 26, 2025 12:25
-
-
Save pookjw/d59111161f756fc1793fe90c3789deb0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import CoreData | |
| let c1 = NSManagedObjectContext(concurrencyType: .privateQueueConcurrencyType) | |
| let c2 = NSManagedObjectContext(concurrencyType: .privateQueueConcurrencyType) | |
| // 문제 없음 | |
| c1.performAndWait { | |
| c2.performAndWait { | |
| c1.performAndWait { | |
| } | |
| } | |
| c2.performAndWait { | |
| } | |
| } | |
| // 문제됨 | |
| c1.performAndWait { | |
| c2.perform { | |
| c1.performAndWait { | |
| } | |
| } | |
| c2.performAndWait { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment