2013-04-12 3 views

답변

1

글쎄, 게으르다해서 미안 해요. Dispatch 소스를 살펴보면 setExecutorService을 통해 Http.configure의 스레드 실행 프로그램을 전달할 수 있음을 알 수 있습니다. 예를

val pool: ExecutorService = Executors.newFixedThreadPool(4) 
val httpClient: Http = Http.configure(_.setAllowPoolingConnection(true).setFollowRedirects(true).setConnectionTimeoutInMs(1000).setExecutorService(pool)) 
+1

유일한 문제에 대한

는 작동하지 않았다이다. Dispatch는 내가 통과 한 객체를 사용하지 않습니다. (나중에 업데이트를 게시합니다. – expert