Comments (2)
No, in this case there is no retain cycle.
Observable.create { observer in
let observerAdapter = FetchedResultsControllerEntityObserver(observer: observer, fetchRequest: fetchRequest, managedObjectContext: self.base, sectionNameKeyPath: sectionNameKeyPath, cacheName: cacheName)
return Disposables.create {
observerAdapter.dispose()
}
}
Observer
is retained by Observable
and FetchedResultsControllerEntityObserver
FetchedResultsControllerEntityObserver
is retained by Observable
, it has a reference in Disposable
As soon as Observable
will be deallocated, FetchedResultsControllerEntityObserver
will have no other reference which will release it. Then Observer
will be released as well.
from rxcoredata.
Oh, so the Observable owns the Observer. And FetchedResultsControllerEntityObserver is also owned by the Observable, so it's all down stream and will be deallocated with Observable. That makes a lot of sense. Thank you for your explanation.
from rxcoredata.
Related Issues (20)
- Relationship vs RxCoreData HOT 9
- AnonymousDisposable: unresolved indentifier HOT 2
- The demo content is few
- create + get private to public
- Create swift4.0 branch HOT 1
- Pod trunk HOT 9
- Stewardship HOT 3
- Podspec doesn't support the Mac. HOT 1
- rx.entities.asSingle() won't have a response to subscribe HOT 1
- [iOS 12] RXCoreData crash on iOS 12 HOT 7
- Needs documentation HOT 1
- Extract Persistable
- Use of NSFetchResultController? HOT 2
- Crash on iOS 12 + HOT 1
- Lower deployment target HOT 7
- SPM Support HOT 1
- RxSwift 6.0 support HOT 2
- Proposal for FetchedResultsControllerEntityObserver and FetchedResultsControllerSectionObserver HOT 4
- Swift 3 support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxcoredata.