Skip to content

Conversation

@dogi
Copy link
Member

@dogi dogi commented Nov 10, 2025

  • Replaced GlobalScope with a Hilt-injected @ApplicationScope CoroutineScope in UserProfileDbHandler.
  • This change ensures that coroutines launched by the handler are managed within the application's lifecycle, improving testability and preventing potential leaks.
  • Preserved the existing logic of dispatching UI-related callbacks to the main thread.

https://jules.google.com/session/1368380824491309188

- Replaced GlobalScope with a Hilt-injected @ApplicationScope CoroutineScope in UserProfileDbHandler.
- This change ensures that coroutines launched by the handler are managed within the application's lifecycle, improving testability and preventing potential leaks.
- Preserved the existing logic of dispatching UI-related callbacks to the main thread.
@dogi dogi closed this Nov 10, 2025
@dogi dogi reopened this Nov 10, 2025
@dogi dogi removed the close? label Nov 10, 2025
@dogi dogi changed the title Refactor UserProfileDbHandler to use injected CoroutineScope Refactor UserProfileDbHandler to use injected Coroutine scoping (fixes #9028) Nov 11, 2025
@dogi dogi changed the title Refactor UserProfileDbHandler to use injected Coroutine scoping (fixes #9028) all: smoother user profile handler scoping (fixes #9028) Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants