I am building a warm-up process for an API that happens on start.
The method I have to work with (comes from another library) has the following signature:
fun getImportantData<T>(pathToData: String): T
So far I managed to create a Map<String, KClass> with Path and Type that I want. I want to call the above class in a loop and make sure the values are able to be retrieved. The difficulty is that I cannot provide T when I call getImportantData. Is my approach flawed or is there a way that I don’t know?