Scala 3, Programming Scala.
+ y The for comprehension invokes map and flatMap to wait on the futures and extract the values. A new direct style implementation of futures would be used liked this: val sum = Future: val f1 = Future(c1.read) val f2 = Future(c2.read) f1.value + f2.value In both cases, the two futures are