https://kotlinlang.org logo
#ktor
Title
# ktor
r

rrva

01/31/2019, 5:58 AM
Looking at
NettyApplicationEngine
, why does ktor run application code in a threadpool of its own?
c

cy

01/31/2019, 3:08 PM
This is required to safely run any code that can potentially block
r

rrva

01/31/2019, 4:26 PM
oh, so this is the only reason, nothing with scaling the i/o threads vs user threads? does the context switch to a new set of threads cost much?
4 Views