did this example: <https://github.com/nickymoelhol...
# coroutines
k
Meanwhile, looking at your code, you shouldn't be using the blocking
sleep
. There is a suspending
delay
that won't block
Also, you seem to be blocking the initial thread and returning your
List<Message>
anyway. That isn't taking advantage of the coroutine's suspending functionality
s
restTemplate.getForObject
is also a blocking call.