flatThen

abstract fun <R> flatThen(onFulfilled: (T) -> PromiseResult<R>): PromiseLike<R>(source)
abstract fun <R> flatThen(onFulfilled: (T) -> PromiseResult<R>, onRejected: (JsError) -> PromiseResult<R>): PromiseLike<R>(source)