mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-10-08 08:50:19 +00:00
add kdocs to koin common module
This commit is contained in:
@@ -4,6 +4,16 @@ import org.koin.core.definition.Definition
|
||||
import org.koin.core.module.Module
|
||||
import org.koin.core.qualifier.StringQualifier
|
||||
|
||||
/**
|
||||
* Declares a single instance with a string qualifier in the Koin module.
|
||||
* This is a convenience function that wraps the string qualifier in a [StringQualifier].
|
||||
*
|
||||
* @param T The type of instance to be created
|
||||
* @param qualifier The string value to be used as a qualifier
|
||||
* @param createdAtStart Whether the instance should be created when the Koin module starts (default: false)
|
||||
* @param definition The definition function that creates the instance
|
||||
* @return A Koin definition for the single instance with the specified string qualifier
|
||||
*/
|
||||
inline fun <reified T : Any> Module.single(
|
||||
qualifier: String,
|
||||
createdAtStart: Boolean = false,
|
||||
|
Reference in New Issue
Block a user