Is it OK to call `runBlocking()` on each HTTP requ...
# coroutines
n
Is it OK to call
runBlocking()
on each HTTP request? Does it degrade performance a lot? Thanks.
i
As I remember it's recommended to use
runBlicking()
only for tests
y
Tests and bridging blocking APIs to coroutines.
It is designed to bridge regular blocking code to libraries that are written in suspending style, to be used in
main
functions and in tests.
👍 1
n
Thanks. And is it OK to call
runBlocking()
on each HTTP request? Does it degrade performance a lot?