SharedValueObservationExtent
public enum SharedValueObservationExtent
Controls the extent of the shared database observation
of SharedValueObservation
.
-
The
SharedValueObservation
starts a single database observation, which ends when theSharedValueObservation
is deallocated and all subscriptions terminated.This extent prevents the shared observation from recovering from database errors. To recover from database errors, create a new shared
SharedValueObservation
instance.Declaration
Swift
case observationLifetime
-
The
SharedValueObservation
ends database observation when the number of subscriptions drops down to zero. The database observation restarts on the next subscription.Database errors can be recovered by resubscribing to the shared observation.
Declaration
Swift
case whileObserved