Promise < T > function ( final Function < T , Promise < R >> arg0 ) { final Promise < T > loc0 = this ; return new Promise < > ( resolver -> { loc0 . then ( t -> { Promise < R > loc1 = arg0 . apply ( t ) ; loc1 . then ( t2 -> resolver . result ( t ) ) ; loc1 . failure ( e -> resolver . error ( e ) ) ; } ) ; loc0 . failure ( e -> resolver . error ( e ) ) ; } ) ; }
chaining result to next promise and returning current value as result promise concode_field_sep T result concode_elem_sep Exception exception concode_elem_sep boolean isFinished concode_elem_sep SimpleDispatcher dispatcher concode_elem_sep ArrayList<PromiseCallback<T>> callbacks concode_field_sep Promise<T> mapIfNull concode_elem_sep void onError concode_elem_sep Promise<T> log concode_elem_sep void tryError concode_elem_sep Promise<T> mapIfNullPromise concode_elem_sep Promise<T> then concode_elem_sep void error concode_elem_sep void result concode_elem_sep Promise<R> flatMap concode_elem_sep Promise<T> pipeTo concode_elem_sep void tryResult concode_elem_sep Promise<T> success concode_elem_sep Promise<T> failure concode_elem_sep Promise<T> failure concode_elem_sep void deliverResult concode_elem_sep Promise<T> after concode_elem_sep Promise<R> map concode_elem_sep Promise<T> fallback concode_elem_sep void onResult