oh wow, support request for coroutines was actually closed. I’m going back to ktor 😛
s
s4nchez
10/19/2021, 3:16 PM
@spierce7 if coroutines is what you need the most from an http toolkit, then http4k is indeed not the best tool for you.
s
spierce7
10/19/2021, 3:20 PM
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
Razvan
10/19/2021, 3:24 PM
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.
Razvan
10/19/2021, 3:28 PM
We use them that way for a batch server to run background tasks.