← Docs
kotlin-stdlib / kotlin.js / then

then

JS
1.1
inline fun < T , S > Promise < Promise < T > > . then (
noinline onFulfilled : ( ( T ) -> S ) ?
) : Promise < S >

(source)
inline fun < T , S > Promise < Promise < T > > . then (
noinline onFulfilled : ( ( T ) -> S ) ? ,
noinline 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 .