scope
inline fun <T : Any> scope(qualifier: Qualifier = TypeQualifier(T::class), noinline block: DependencyModuleBuilder.() -> Unit)
Defines a nested scope within the current module.
Parameters
T
The type to be used as a base for the scope's TypeQualifier.
qualifier
An optional Qualifier to uniquely identify this sub-scope.
block
A lambda with a DependencyModuleBuilder receiver to define dependencies within the nested scope.
The current Scope in which the dependencies are being defined.