greyhound icon indicating copy to clipboard operation
greyhound copied to clipboard

Kotlin DSL

Open OneCricketeer opened this issue 4 years ago • 4 comments

Hi again!

Any possibility there would be ever be a Kotlin library or DSL to use?

OneCricketeer avatar May 19 '20 06:05 OneCricketeer

Well the underlying core code is written in Scala. But we managed to create a wrapper API with mixed Scala/Java code that can easily be called from Java code. So I think it can already be called from Kotlin code due to Java/Kotlin great interoperability.

There may be an issue with async API. Do you know what's the equivalent of Java's CompletableFuture in Kotlin? If it's usable directly than no problem here

natansil avatar Jun 13 '20 18:06 natansil

Do you know what's the equivalent of Java's CompletableFuture in Kotlin

Coroutines?

https://github.com/Kotlin/kotlinx.coroutines/blob/master/integration/kotlinx-coroutines-jdk8/README.md#module-kotlinx-coroutines-jdk8

OneCricketeer avatar Jun 17 '20 22:06 OneCricketeer

I used Kotlin with the Java interop and it works fine but can get messy with the exception handling code.

JohnSColeman avatar Jun 03 '21 09:06 JohnSColeman

Can you please elaborate a bit on the issue with exception handling code.

natansil avatar Jun 03 '21 10:06 natansil