标签: angularjs
val future1 = Future { // long running task 1 } def compute(value: Int) = Future { value + 1} future1.flatMap(value => compute(value))