mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-12 04:10:36 +01:00
How to use CoreStore with Google Promises Framework #200
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @krema on GitHub (Feb 26, 2018).
Hi,
I have noticed that my fetches are not present when fullfilling the promise.
After some testing and reading from issue https://github.com/JohnEstropia/CoreStore/issues/180 I noticed that the use of promises leads to a switch from the main-thread to the main-thread serial queue. That may be one reason why I can't access the fetched properties.
Is there any way to make it work somehow?
Appreciate any idea.
@krema commented on GitHub (Feb 27, 2018):
Instead of fiddling around with GCD I made it work with an additional layer (business). I use the repository pattern that acts as a facade for CoreStore / CoreData and map the Core Data entities to a business model before returning them from the data access layer to the business layer. So simply!
I am closing this ticket for now.