Contents

addObserver(_:)

Declaration

func addObserver(_ observer: any LAEnvironment.Observer)

Discussion

Adds observer to monitor changes of the environment.

The observer will be held weakly so its instance should be kept alive by the caller.