nl: sets the exception from failed execution and executes callback if available . notifies any thread waiting for completion . concode_field_sep Exception exception concode_elem_sep int COMPLETED concode_elem_sep AtomicInteger idx concode_elem_sep int state concode_elem_sep Object lock concode_elem_sep Optional<AsyncCallback<T>> callback concode_elem_sep int FAILED concode_elem_sep int RUNNING concode_elem_sep T value concode_field_sep T getValue concode_elem_sep AsyncResult<T> startProcess concode_elem_sep AsyncResult<T> startProcess concode_elem_sep void setValue concode_elem_sep T endProcess concode_elem_sep void await concode_elem_sep boolean isCompleted
code: void function ( Exception arg0 ) { this . exception = arg0 ; this . state = FAILED ; this . callback . ifPresent ( ac -> ac . onComplete ( null , Optional . of ( arg0 ) ) ) ; synchronized ( lock ) { lock . notifyAll ( ) ; } }