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