Commit e0f1d62e authored by Sebastian Kaspari's avatar Sebastian Kaspari Committed by Christian Sadilek
Browse files

ObserverRegistry: Update kdoc.

parent a904a023
......@@ -19,6 +19,8 @@ import java.util.WeakHashMap
/**
* A helper for classes that want to get observed. This class keeps track of registered observers
* and can automatically unregister observers if a LifecycleOwner is provided.
*
* ObserverRegistry is thread-safe.
*/
class ObserverRegistry<T> : Observable<T> {
private val observers = mutableSetOf<T>()
......@@ -75,7 +77,6 @@ class ObserverRegistry<T> : Observable<T> {
/**
* Unregisters an observer. Does nothing if [observer] is not registered.
* This method is thread-safe.
*
* @param observer the observer to unregister.
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment