https://kotlinlang.org logo
#dagger
Title
# dagger
a

abbic

09/26/2023, 10:33 AM
hi, will Hilt generate a singleton per type I instantiate at runtime in the following code?
Copy code
@Singleton
class EventBus<T> @Inject constructor() {
t

trevjones

09/27/2023, 3:58 PM
I would assume yes because the injection site is going to have type for T that would be considered when it builds the graph.