1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Only one thread to build. For now.

This commit is contained in:
Cedric Beust 2016-07-30 16:44:09 -07:00
parent 203373deb8
commit 9f04b26a0a

View file

@ -153,7 +153,7 @@ interface IThreadWorkerFactory<T> {
}
class DynamicGraphExecutor<T>(val graph : DynamicGraph<T>, val factory: IThreadWorkerFactory<T>) {
val executor = Executors.newFixedThreadPool(5, NamedThreadFactory("DynamicGraphExecutor"))
val executor = Executors.newFixedThreadPool(1, NamedThreadFactory("DynamicGraphExecutor"))
val completion = ExecutorCompletionService<TaskResult2<T>>(executor)
fun run() : TaskResult {