Tristan Caron
03/21/2018, 3:22 PM// From Ktor
get("/longtask") {
call.respondText("OK")
runLongTask(settings) // Returns a Job
}
What I would like is, when /longtask
is called for the first time, call the function runLongTask
, but if it's called a second time, and runLongTask
from the first call is not finished yet, to run it again. Not at all.elizarov
03/21/2018, 7:16 PMTristan Caron
03/22/2018, 7:04 AM