Coverage Summary for Class: DispatchersProvider (concept.stc.coroutines)
Class |
Class, %
|
Method, %
|
Line, %
|
DispatchersProvider |
100%
(1/1)
|
100%
(2/2)
|
100%
(2/2)
|
package concept.stc.coroutines
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import org.springframework.stereotype.Component
/**
* Provides coroutines dispatchers.
* This class allows replacing background dispatchers for unit and integration testing.
*/
@Component
class DispatchersProvider {
/**
* Get the IO dispatcher.
*/
val io: CoroutineDispatcher get() = Dispatchers.IO
}