← 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
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .