v1.8.10
  • Solutions
    • Multiplatform
    • Server-side
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.js / Promise / then

then

JS
1.1
open fun <S> then(onFulfilled: ((T) -> S)?): Promise<S>
(source)
open fun <S> then(
    onFulfilled: ((T) -> S)?,
    onRejected: ((Throwable) -> S)?
): Promise<S>

(source)
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains