So I’m a little surprised to find this, but I’m no...
# http4k
s
So I’m a little surprised to find this, but I’m not seeing any coroutine support in http4k. Is that the case?
d
Coroutine support is currently only available in the http4k enterprise version
😂 8
👌 1
d
s
oh wow, support request for coroutines was actually closed. I’m going back to ktor 😛
s
@spierce7 if coroutines is what you need the most from an http toolkit, then http4k is indeed not the best tool for you.
s
It’s not what I need most, and I definitely could work without it, but I’ve gotten so used to working with suspend functions and Structured Concurrency, and servers are a fantastic use case for Structured Concurrency, why settle?
r
you can still do it, just use
runBlocking {  }
in your handler... you will be using coroutines, just your request will not be asynchronous... but if it's not what you're looking for then no problem with that.
We use them that way for a batch server to run background tasks.