T function ( long arg0 , TimeUnit arg1 ) { if ( ! mReadyLatch . await ( arg0 , arg1 ) ) { throw new TimeoutException ( "srini_string" ) ; } if ( mException != null ) { throw new ExecutionException ( mException ) ; } return mResult ; }
wait up to the timeout time for another thread to set a value on this future . if a value has already been set , this method will return immediately . nb : for simplicity , we catch and wrap interruptedexception . do not use this class if you are in the 1 % of cases where you actually want to handle that . concode_field_sep T mResult concode_elem_sep Exception mException concode_elem_sep CountDownLatch mReadyLatch concode_field_sep boolean cancel concode_elem_sep boolean isCancelled concode_elem_sep void set concode_elem_sep void checkNotSet concode_elem_sep T getOrThrow concode_elem_sep T getOrThrow concode_elem_sep void setException concode_elem_sep boolean isDone