https://kotlinlang.org logo
h

hackerham

12/16/2016, 11:30 AM
There is an implementation artefact in M04 that you can only do tail suspend calls in suspending function, but we’ll lift it in the future.
Does that mean it'll be possible to omit "suspendable" part there?
Copy code
suspend funcB(): Long
suspend funcC(): Long
suspend funcA() = suspendable<Long> {
   val x = funcB()
   val y = funcC()
   x+y
}