← Docs
kotlin-stdlib / kotlin.js / Promise / <init>

<init>

JS
1.1
Promise (
executor : ( resolve : ( T ) -> Unit , reject : ( Throwable ) -> Unit ) -> Unit )

Exposes the JavaScript Promise object to Kotlin.

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 .