element-hq / element-hq/element-android

Investigate synchronised usages

Open
#5,750 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.