then

abstract fun <S> then(onFulfilled: (T) -> S?, onRejected: (Throwable) -> S?): Promise<S>