consume

inline fun <R> consume(code: (T) -> R): R(source)

Blocks execution until the future is ready.

Since Kotlin

1.3

Return

the execution result of code consumed future's computaiton

Throws