使用 Gpars 進行並行處理

Gpars 提供了同時處理任務的直觀方式

import groovyx.gpars.*
GParsPool.withPool { def result = dataList.collectParallel { processItem(it) } }