provideMainDispatcher

@Provides
fun provideMainDispatcher(dispatchersProvider: DispatchersProvider): CoroutineDispatcher

Provides the main CoroutineDispatcher using the DispatchersProvider.

Example usage:

class MyClass @Inject constructor(@Dispatching.Main private val mainDispatcher: CoroutineDispatcher)

Return

The main CoroutineDispatcher.

Parameters

dispatchersProvider

The DispatchersProvider instance.