“Best” ExecutionContext for IO

爷,独闯天下 提交于 2019-12-07 05:59:54

问题


I have some synchronous calls in my Scala code. I've wrapped them in a blocking() context and then in a Future: Future(blocking(syncCall())), but I don't know which type of ExecutionContext to use.

I know there may be a lot of possibilities and that there is not an ExecutionContext that it's the "best". I just need some information in order not to choose the worst because there is a lot of information out there and I have a mess in my head.

来源:https://stackoverflow.com/questions/38014748/best-executioncontext-for-io

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!