aaverin
08/10/2017, 2:46 PMfun getData() = async(CommonPool) {
//do some network
async(CommonPool) { //do some more parallel network }
.await() //and process results all together
}
Let’s say 3-5 of such written services are called at the same time in parallel by users.
Could this lead to any problems?kingsley
08/10/2017, 2:50 PMCommonPool
isn’t particularly suited for long blocking IO operations.
Also, since it is (single?) and blocking, it’s clear why time outs will happen more often