commonMain.com.ivianuu.injekt.common.SourceKey.kt Maven / Gradle / Ivy
/*
* Copyright 2022 Manuel Wrage. Use of this source code is governed by the Apache 2.0 license.
*/
package com.ivianuu.injekt.common
import com.ivianuu.injekt.Inject
import kotlin.jvm.JvmInline
/**
* A key which is unique for each root call site
*/
@JvmInline value class SourceKey(val value: String)
/**
* Returns the [SourceKey] at this call site
*/
inline fun sourceKey(@Inject x: SourceKey): SourceKey = x
© 2015 - 2024 Weber Informatics LLC | Privacy Policy