probably wrong but something like: ```fun performR...
# announcements
r
probably wrong but something like:
Copy code
fun performRequest<T>(request: ApiMessage<T>)
At a guess..??
🧵 1
s
As per errors and code changes, this seems to be the way. At least the compiler is not complaining
private suspend fun <T : Message<T>> performRequest(request: pbandk.Message<T>) {}
I’ll have to check tomorrow if working. Thanks!
r
Glad I could help someone.
j
if you don't need to access the
T
(eg, just calling
convertToBytes()
), then
fun performRequest(request: ApiMessage<*>)
should work as well
s
Oh great thanks! That is exactly what I need!!