provideMainCoroutineScope

@Provides
fun provideMainCoroutineScope(dispatchersProvider: DispatchersProvider): CoroutineScope

Provides the main CoroutineScope using the DispatchersProvider.

Example usage:

class MyClass @Inject constructor(@Dispatching.Main private val mainScope: CoroutineScope)

Return

The main CoroutineScope.

Parameters

dispatchersProvider

The DispatchersProvider instance.