Coverage Summary for Class: PlayerServiceModule (com.vsevolodganin.clicktrack.di.module)

Class Method, % Branch, % Line, % Instruction, %
PlayerServiceModule 0% (0/2) 0% (0/2) 0% (0/7)
PlayerServiceModule$DefaultImpls 0% (0/2) 0% (0/2) 0% (0/4)
Total 0% (0/4) 0% (0/4) 0% (0/11)


 package com.vsevolodganin.clicktrack.di.module
 
 import android.os.Process
 import com.vsevolodganin.clicktrack.di.component.PlayerServiceScope
 import com.vsevolodganin.clicktrack.utils.coroutine.createSingleThreadCoroutineDispatcher
 import kotlinx.coroutines.CoroutineDispatcher
 import kotlinx.coroutines.CoroutineScope
 import kotlinx.coroutines.Dispatchers
 import me.tatarka.inject.annotations.Provides
 
 typealias PlayerDispatcher = CoroutineDispatcher
 
 interface PlayerServiceModule {
     @Provides
     @PlayerServiceScope
     fun providePlayerServiceCoroutineScope(): CoroutineScope {
         return CoroutineScope(Dispatchers.Main.immediate)
     }
 
     @Provides
     @PlayerServiceScope
     fun providePlayerCoroutineDispatcher(): PlayerDispatcher {
         return createSingleThreadCoroutineDispatcher("ClickTrackPlayer", Process.THREAD_PRIORITY_URGENT_AUDIO)
     }
 }