then

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