


If the type of the last argument is Promise, the function will wait for the promise to be resolved or rejected before the response is passed back to JavaScript.

body: (args.) -> ReturnType - The closure to run when the function is called.name: String - Name of the function that you'll call from JavaScript.Kotlift helps you to write business logic once, and reuse most of the code on iOS. Defines a JavaScript function that always returns a Promise and whose native code is by default dispatched on the different thread than the JavaScript runtime runs on. Kotlift is the first source-to-source language transpiler from Kotlin to Swift.
