mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Does it support Multi-thread? #152
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 @ondev on GitHub (Jul 14, 2017).
@JohnEstropia commented on GitHub (Jul 15, 2017):
@ondev That depends what you mean by "it" and "multi-thread".
CoreStore runs on top of Core Data, so all threading support offered by Core Data is inherited by Core Store. This includes reading and writing objects from a background thread.
On the other hand, CoreStore will enforce that object properties are accessed only on the queue they correspond to. In that sense, an object is not "multi-thread". For example, an object read from the main thread cannot be manipulated directly from a transaction queue. There are utilities to get the correct object for the correct queue (
transaction.edit(_:),transaction.fetchExisting(_:), etc).@ondev commented on GitHub (Jul 20, 2017):
Thanks your reply.