FeatureObserverWrapperHelper<S, M, E> extension

Extension for attaching a FeatureObserver to a Feature.

Provides a convenient method to wrap a feature with an observer.

Example:

final observedFeature = myFeature.observe(MyObserver());
on
Annotations
  • @experimental

Methods

observe(FeatureObserver<S, M, E> observer) Feature<S, M, E>

Available on Feature<S, M, E>, provided by the FeatureObserverWrapperHelper extension

Wraps the feature with the specified observer.