Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de364159 authored by Shivangi Dubey's avatar Shivangi Dubey Committed by Android (Google) Code Review
Browse files

Merge "Fix Shell's injection of MainCoroutineDispatcher" into main

parents 31b47abb da82e0cf
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -61,20 +61,20 @@ class WMShellCoroutinesModule {
  @WMSingleton
  @ShellMainThread
  fun provideApplicationScope(
      @ShellMainThread applicationDispatcher: CoroutineDispatcher,
      @ShellMainThread applicationDispatcher: MainCoroutineDispatcher,
  ): CoroutineScope = CoroutineScope(applicationDispatcher)

  @Provides
  @WMSingleton
  @ShellBackgroundThread
  fun provideBackgroundCoroutineScope(
      @ShellBackgroundThread backgroundDispatcher: CoroutineDispatcher,
      @ShellBackgroundThread backgroundDispatcher: MainCoroutineDispatcher,
  ): CoroutineScope = CoroutineScope(backgroundDispatcher)

  @Provides
  @WMSingleton
  @ShellBackgroundThread
  fun provideBackgroundCoroutineContext(
      @ShellBackgroundThread backgroundDispatcher: CoroutineDispatcher
      @ShellBackgroundThread backgroundDispatcher: MainCoroutineDispatcher
  ): CoroutineContext = backgroundDispatcher + SupervisorJob()
}