You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an option to choose a custom queue for completion handlers (#334)
* [refact] Rename queues
This should make the code a tad more readable.
* Add an option to choose a custom queue for completion handlers
This required quite a bit of refactoring:
- Eliminate all explicit references to the main dispatch queue and the main operation queue. This required creating a dedicated queue for aggregate operations (like “delete by query”), called `inMemoryQueue`.
- Serialize the fallback logic in mixed online/offline requests. Since the completion queue can be parallel, this is required now.
NOTE: I chose to expose an `OperationQueue` instead of a `DispatchQueue` because (as of iOS 8.0) you can wrap a dispatch queue inside an operation queue (using `underlyingQueue`) whereas the opposite is not true.
Fixes#69.
0 commit comments