したがって、次のようなブロックがある場合:
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
?...または、これを管理するために特別なコードが必要ですか?