observeModuleResult
Observes an Observable derived from the Module, re-deriving it as the module's availability changes.
Use this for state streams, where subscribers must know when the Module is unavailable. For event streams, use observeModule instead.
The stream emits nothing until the ModuleManager has finished loading its modules. Once it has, it emits TealiumResult.success values produced by transform while the module is enabled, and a TealiumResult.failure carrying ModuleNotEnabledException while the module is disabled or missing, switching back to success values if the module is re-enabled.
If the Tealium instance failed to initialize, or is later shut down, the stream emits a single failure carrying that exception (Tealium.TealiumShutdownException on shutdown) and then completes.
Values the Module emits while the Tealium instance is shutting down are not delivered: the terminal failure is the last value a subscriber receives.
Return
A Subscribable of TealiumResults wrapping the values of the inner Observable.
Parameters
The transformation that maps the Module to one of its Observables.