Sean Abbott
06/24/2021, 6:28 PMroute("/foo") {
get("{bar}") {
if not validFoo(call.parameters) return@get call.respondText("invalid", status = HttpStatusCode.BadRequest)
launch { longRunningWorkIDontNeedAResponseFrom(call.parameters) }
call.respondText("Started work")
}
}
I know I'm using coroutine already, but...do I need to set up the coroutine scope? Can I share a thread pool with ktor?Sean Abbott
06/24/2021, 6:29 PMSean Abbott
06/24/2021, 7:58 PMBrad Murray
06/24/2021, 8:21 PMSean Abbott
06/24/2021, 8:36 PM