Eliminate Unmanaged CoroutineScope Instantiation in DAOs and Workers

Open
#6,841 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Roniscend is already working on this.

Since Apr 11, 2026.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
53/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
android, kotlin
Domain
mobile

Research direction

Start by reading DepictsDao.kt and UploadWorker.kt and locating the manually created CoroutineScope calls. Check how each class manages its lifecycle and how its work is currently started; the issue does not name tests. Done means both use lifecycle-aware scopes so tasks can be cancelled appropriately and resources are not leaked.

Written by the indexing model from the issue text.

Description

Replace manually created, unscoped CoroutineScope calls in DepictsDao.kt and UploadWorker.kt with lifecycle-aware scopes to ensure proper task cancellation and prevent resource leaks.

Dominant language
Kotlin
Stars
1.2k
Forks
1.4k
Avg merge
1d 4h
Merged PRs (30d)
156

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from commons-app/apps-android-commons

All issues in commons-app/apps-android-commons

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.