classKey

inline fun <T : Any> classKey(): LazyKey<T>

Creates a LazyClassKey for the reified type T, which can be used for class-based lookups.

This is the standard way to create a key for registering and retrieving a service based on its type, ensuring lazy singleton behavior by default. Multiple invocations of this function for the same type T will produce keys that are considered equal.

Return

A LazyKey that uses the class of T as its identifier.