所以如果我有一个看起来像这样的块:
def fileTree = project.fileTree("someDir/")
GPars.withPool(threads,exceptionHandler) {
fileTree.eachParallel { File ->
//Load the file, transform the data and write it to a new file name.
} //End of eachParallel
}//End of withPool
什么时候所有文件都被写入、刷新并准备好在附加代码中使用?在End of eachParallel
或 在End of withpool
? ...或者是否需要特殊代码来管理这个?