Future[Option] in Scala for-comprehensions

前端 未结 5 1660
闹比i
闹比i 2020-12-07 19:16

I have two functions which return Futures. I\'m trying to feed a modified result from first function into the other using a for-yield comprehension.

This approach w

5条回答
  •  隐瞒了意图╮
    2020-12-07 19:21

    It's easier to use https://github.com/qifun/stateless-future or https://github.com/scala/async to do A-Normal-Form transform.

提交回复
热议问题