Merge "Make displaylib handler and coroutine scope singletons" into main

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2025-05-27 10:37:42 -07:00
commit e70ea33de1
1 file changed
+2
@@ -57,6 +57,7 @@ object LauncherConcurrencyModule {
* Prefer the Background Executor when possible.
*/
@Provides
@LauncherAppSingleton
@Background
fun provideBgHandler(@Background bgLooper: Looper): Handler = Handler(bgLooper)
@@ -65,6 +66,7 @@ object LauncherConcurrencyModule {
/** Background CoroutineScope provider. */
@Provides
@LauncherAppSingleton
@Background
fun provideBgCoroutineScope(dispatcherProvider: DispatcherProvider) =
CoroutineScope(