home-assistant / home-assistant/android

Remove any usage of `runBlocking`

Open
#5,688 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

We do have a lot of `runBlocking` usage in the app. Most of them could be replaced by a proper coroutine. It leads to some ANR because it actually blocks the Main thread which we must not do under any circumstances.

It is not an easy task since some of them are quite hard to replace properly.

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.