umar
04/11/2017, 4:26 AMsuspend parenless fun await(...) = ...
suspend parenless fun yield(...) = ...
usage :
val backgroundImage = await loadImage(...)
val image = await loadImage(...)
yield 1
yield longComputation()
but cannot use in nested call or with more than 1 argument without parenthesis :
saveImage await loadImage()
yield result1, result2
because it is not clear and creates puzzlers
Also, IDE highlighting can help in recognizing this calls