Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
e0f1d62e
Commit
e0f1d62e
authored
Jun 06, 2019
by
Sebastian Kaspari
Committed by
Christian Sadilek
Jun 06, 2019
Browse files
ObserverRegistry: Update kdoc.
parent
a904a023
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/support/base/src/main/java/mozilla/components/support/base/observer/ObserverRegistry.kt
View file @
e0f1d62e
...
...
@@ -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.
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment