サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
参議院選挙2025
lampwww.epfl.ch/~phaller
Philipp Haller @philippkhaller Futures and Async: When to Use Which? Overview • A brief guide to the Future of Scala • What is a Promise good for? • What is Async? • Guidelines on when to use which Future Creation object Future { // [use case] def apply[T](body: => T): Future[T] // .. } Example val fstGoodDeal = Future { usedCars.find(car => isGoodDeal(car)) } Future trait Future[+T] extends Await
このページを最初にブックマークしてみませんか?
『lampwww.epfl.ch』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く