使用 Gpars 进行并行处理

Gpars 提供了同时处理任务的直观方式

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