I don’t think you can do this, because the T of My...
# multiplatform
a
I don’t think you can do this, because the T of MyClass is erased at compile time, isn’t it? What benefit is reification giving you in your suspend fn?
f
Suspended function is not my. It fn of ktor class. I want to write wrapper
a
have you considered reifing and inlining getData? I think as it stands now, you’ll not be able to get around the erasure… I could be wrong though.
b
unless you could have your T resolved with a type check, you will be forced into inline/reify the function itself.