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
- I changed the API because I like to use the word value in other par…
…ts of my code and I ended up using value.value and it made me sad.
- value -> raw
- valueObservable -> observable
- valueStream -> stream
Add AsyncObservableReadOnly
If you want to expose an AsyncObservable as a read only property, you can use the AsyncObservableReadOnly protocol externally.
class SomeClass {
// .update is availble on the private property
private let _someProperty = AsyncObservable(whatever)
// but not on the public property, unless someone casts, but this should be enought of a deterrent
var someProperty: AsyncObservableReadOnly<String> { _someProperty }
}