Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin DSL #60

Open
OneCricketeer opened this issue May 19, 2020 · 4 comments
Open

Kotlin DSL #60

OneCricketeer opened this issue May 19, 2020 · 4 comments

Comments

@OneCricketeer
Copy link

Hi again!

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

@natansil
Copy link
Collaborator

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

@OneCricketeer
Copy link
Author

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

@JohnSColeman
Copy link

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

@natansil
Copy link
Collaborator

natansil commented Jun 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants