Skip to main content
Version: v2.2.0-0.13.1

MarkName

Experimental Version 0.13.0

You can use markName to add a name mark annotation (e.g. @JvmName, @JsName) to the generated synthetic function.

Using in the standard runtime

JVM Example

class Foo {
@JvmBlocking(markName = "namedWaitAndGet")
suspend fun waitAndGet(): String {
delay(5)
return "Hello"
}
}
warning

@JvmName has limitations on non-final functions, and even the compiler may prevent compilation.

JavaScript Example

class Foo {
@JsPromise(markName = "namedWaitAndGet")
suspend fun waitAndGet(): String {
delay(5)
return "Hello"
}
}

Customize

In custom annotations, you can configure markName.

info

For basic information about custom annotations (and transformers), refer to Custom Transformers.

warning

TODO