Feel free to let me know if you want to accomplish this differently.
Not quite sure how you want to approach tests for this, given that the only way (I can think of) to test the negative case is to intentionally create a deadlock in tests...
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/JohnEstropia/CoreStore/pull/104
**Author:** [@colinmorelli](https://github.com/colinmorelli)
**Created:** 9/29/2016
**Status:** ✅ Merged
**Merged:** 9/30/2016
**Merged by:** [@JohnEstropia](https://github.com/JohnEstropia)
**Base:** `develop` ← **Head:** `feature/sync-transaction-async-merge`
---
### 📝 Commits (1)
- [`8be2037`](https://github.com/JohnEstropia/CoreStore/commit/8be20370d5e4f2cea3dbfec4feafafe8dd488fef) Fixes #98 (deadlock when merge happens while main queue is querying)
### 📊 Changes
**3 files changed** (+33 additions, -7 deletions)
<details>
<summary>View changed files</summary>
📝 `CoreStore.xcodeproj/project.xcworkspace/xcshareddata/CoreStore.xcscmblueprint` (+2 -2)
📝 `Sources/Internal/NSManagedObjectContext+Transaction.swift` (+4 -4)
📝 `Sources/Transactions/SynchronousDataTransaction.swift` (+27 -1)
</details>
### 📄 Description
Feel free to let me know if you want to accomplish this differently.
Not quite sure how you want to approach tests for this, given that the only way (I can think of) to test the negative case is to intentionally create a deadlock in tests...
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/JohnEstropia/CoreStore/pull/104
Author: @colinmorelli
Created: 9/29/2016
Status: ✅ Merged
Merged: 9/30/2016
Merged by: @JohnEstropia
Base:
develop← Head:feature/sync-transaction-async-merge📝 Commits (1)
8be2037Fixes #98 (deadlock when merge happens while main queue is querying)📊 Changes
3 files changed (+33 additions, -7 deletions)
View changed files
📝
CoreStore.xcodeproj/project.xcworkspace/xcshareddata/CoreStore.xcscmblueprint(+2 -2)📝
Sources/Internal/NSManagedObjectContext+Transaction.swift(+4 -4)📝
Sources/Transactions/SynchronousDataTransaction.swift(+27 -1)📄 Description
Feel free to let me know if you want to accomplish this differently.
Not quite sure how you want to approach tests for this, given that the only way (I can think of) to test the negative case is to intentionally create a deadlock in tests...
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.