consume
Blocks execution until the future is ready.
Exceptions
IllegalStateException
- if future is in FutureState.INVALID, FutureState.CANCELLED or
FutureState.THROWN state
Return the execution result of code consumed future's computaiton
Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
Blocks execution until the future is ready.
IllegalStateException
- if future is in FutureState.INVALID, FutureState.CANCELLED or
FutureState.THROWN state
Return the execution result of code consumed future's computaiton