This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline fun <reified K, reified V> Koin.getMultibinding(): Map<K, V> = | |
get<Multibinding<K, V>>(qualifier = multibindingQualifier<K, V>()).toMap() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.koin.core.Koin | |
import org.koin.core.context.startKoin | |
import org.koin.core.module.Module | |
import org.koin.core.qualifier.Qualifier | |
import org.koin.core.qualifier.named | |
import org.koin.dsl.module | |
import org.koin.dsl.onClose | |
import org.koin.ext.getFullName | |
// Based on Koin 3.1.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.qwert2603.myapplication | |
import androidx.annotation.CheckResult | |
import kotlinx.coroutines.delay | |
import kotlinx.coroutines.runBlocking | |
class Storage { | |
suspend fun get(): Result<String> = runCatching { | |
delay(1) |
OlderNewer