element-hq / element-hq/element-android
Investigate synchronised usages
Open
A-Performance
T-Task
Z-ANR
- Dominant language
- Kotlin
- Stars
- 3.7k
- Forks
- 917
- PR merge metrics
- No merged PRs in 30d
Description
We have a few synchronised usages within the app due to multiple threads accessing mutable state however we don't discriminate by threads. This is an issue when the `Main Thread` interacts with on of these synchronised variables as it can cause ANRs.
The common pattern tends to be registering/unregistering listeners on the `Main Thread` and iterating and invoking them from another thread
Contributor guide
Assessment
This issue has not been assessed yet.