Hi, I'm having an issue understanding and using su...
# ktor
h
Hi, I'm having an issue understanding and using suspend function with dependency injection ...
Copy code
class SdWsService(fileUtils: FileUtils) {
    suspend fun getXmlFile(environment: String?, filename: String): String = dbQuery(environment) {
Inside getXmlFile, I do not have access to my fileUtils ...
d
fileUtils
is just a constructor parameter. If you want it to be a property of your class, add the
val
keyword...
h
Oh that was rather stupid by me ^^' Thanks for your help