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/Java interop: let OnPreInit/... work with Java Consumer and kotlin (T) -> Unit #8

Open
jangalinski opened this issue Jul 12, 2018 · 0 comments
Labels
nice-to-have would be cool, but not required

Comments

@jangalinski
Copy link
Contributor

When we use (T) -> Unit, java users must write return Unit.INSTANCE to fulfill the contract.
To avoid this, we built in a hard reference to java 8 Consumer {}

It would be nice to have a better solutuin if you are using the lib from kotlin, but for now its ok and kotlin users can still work with it.

@jangalinski jangalinski added the nice-to-have would be cool, but not required label Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nice-to-have would be cool, but not required
Projects
None yet
Development

No branches or pull requests

1 participant