-
Imagine two threads registering same listener. Both get into Not 100% sure. Can somebody take a look? |
Beta Was this translation helpful? Give feedback.
Answered by
jimmarino
Sep 24, 2021
Replies: 1 comment
-
This would likely not happen: (1) Runtime bootstrap is single-threaded (2) If a listener was registered after runtime boot, the same object instance would need to be registered from two different threads, which would have to be intentionally done (since it is the same object instance or a poor implementation of .equals()). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
juliapampus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This would likely not happen:
(1) Runtime bootstrap is single-threaded
(2) If a listener was registered after runtime boot, the same object instance would need to be registered from two different threads, which would have to be intentionally done (since it is the same object instance or a poor implementation of .equals()).