Is there anything inherently wrong returning a `De...
# dagger
a
Is there anything inherently wrong returning a
Deferred<T>
from
@Provides
, like this:
Copy code
@Provides
@Singleton
fun provideAppConfig(
    coroutineScope: CoroutineScope
): Deferred<AppConfigValues> =
        coroutineScope.async {
            ... some suspend functions ...
            AppConfigValues()
        }
k
It's a valid use case from what I can see
👍 2