<@U5G5R0PQ9> 1. introduce thread pool to run bloc...
# ktor
c
@patrickdelconte 1. introduce thread pool to run blocking operations (SQL, http requests via blocking clients, cpu expensive operations) `val heavyWorkerPool = newFixedThreadPoolContext(numberOfThreads, "heavy-worker") 2. run
async
on that pool
Copy code
get("/long/blocking") {
    val result = run(heavyWorkerPool) {
        // do some long running blocking stuff
        someResult
    }
    call.respondText(result)
}