-
Notifications
You must be signed in to change notification settings - Fork 66
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
Investigate usefulness of code generation for Kotlin coroutines #41
Comments
LGTM :) val id = Vertx.setTimer(1000) |
actually no, this is Kotlin and that's an extension method that is available on vertx instances. |
It's true, my fault. 😅 |
This would be very preferential. There are many areas that callbacks in vertx api could be translated to coroutine suspension function and IMO would make it more idiomatic kotlin and simpler for those approaching vertx as well. |
It is useful if working with coroutine. Is this code generator done by vertx-codegen? |
@feiyanke yes, it is currently implemented for data object and Kotlin in this project |
I have spent the long weekend to come up with this pull request #53 . Would anyone mind reviewing before I continue? |
Closing as outdated, coroutines support has been implemented |
for instance, now we use the
await*
suspending function like thiswe could generate extensions:
that allow to directly write:
The text was updated successfully, but these errors were encountered: