Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimise use of default() dispatcher #3747

Merged
merged 4 commits into from
Nov 14, 2023

Conversation

cmonfortep
Copy link
Contributor

@cmonfortep cmonfortep commented Oct 25, 2023

Task/Issue URL: https://app.asana.com/0/488551667048375/1205529944668184/f

Description

Migrates away from using Dispatcher.Default(). That applies to any launch in appCoroutineScope or custom scope where no dispatcher has been defined.

Steps to test this PR

Smoke tests in the app

UI changes

Before After
!(Upload before screenshot) (Upload after screenshot)

@cmonfortep
Copy link
Contributor Author

cmonfortep commented Oct 25, 2023

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

Copy link
Collaborator

@aitorvs aitorvs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@CDRussell CDRussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -157,7 +157,7 @@ class SearchAndFavoritesWidget : AppWidgetProvider() {
voiceSearchWidgetConfigurator.configureVoiceSearch(context, remoteViews, true)
configureFavoritesGridView(context, appWidgetId, remoteViews, widgetTheme)
configureEmptyWidgetCta(context, appWidgetId, remoteViews, widgetTheme)

// TODO: can this be moved to io?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this TODO deliberately to remain?

@cmonfortep cmonfortep force-pushed the feature/cristian/stop_using_default branch from b65f3eb to 3966b5b Compare November 14, 2023 11:30
@cmonfortep cmonfortep force-pushed the feature/cristian/stop_using_default branch from 3966b5b to 9a65ac6 Compare November 14, 2023 12:26
@cmonfortep cmonfortep merged commit daa0db7 into develop Nov 14, 2023
@cmonfortep cmonfortep deleted the feature/cristian/stop_using_default branch November 14, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants