Tim*_*eph 7 scala future for-comprehension
当我不关心返回值时,我该如何编写代码.
例:
for { a <- getA // I do not care about a, but I need to wait for the future to finish b <- getB } yield (b)
moh*_*hit 9
像这样
for { _ <- getA b <- getB } yield (b)
归档时间:
10 年,10 月 前
查看次数:
792 次
最近记录: