Scala 3, Programming Scala.
mechanism discussed below, this exception would be caught by the Future library, used to cancel the other running Future, if one is still running, and then return a Failure future for sum. So, direct style simplifies code, making it is easier to write and understand, plus it enables cleaner