then

override fun <R> then(onFulfilled: (T) -> R): Promise<R>(source)
override fun <R> then(onFulfilled: (T) -> R, onRejected: (JsError) -> R): Promise<R>(source)