Slide 24
Slide 24 text
4DBMBͰόονॲཧ
w 4DBMBඇಉظॲཧϧʔϓॲཧ͕هड़͘͢͠ɺ
όονͰ͋Γ͕ͪͳॲཧΛ؆୯ʹॻ͚Δ
w 'VUVSFͱ-JTUNBQͷΑ͏ͳ"1*Λ͏
val targets: List[Data] = ???
val resultFutures: List[Future[Result]] =
targets map { target =>
Future { execute(target) } // 何か重い処理を非同期で実行
}
val results: Future[List[Result]] = Future.sequence(resultFutures)