-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use flows instead of interface listeners #29
Comments
Probably...! I have to say it's quite awkward right now. On lambdas I wonder if that is not going to shut out Java language users unnecessarily though (current |
It's possible to add Flows alongside listeners like this for example:
Not the best solution I guess, but it's easy, and it doesn't eliminate Java support. |
One thing where flows/channels make our lives easier as devs is thread handling, especially since the current onMidiMessageReceived() listeners might run on whatever thread - depending on the MidiAccess implementation, I guess. E.g. for JvmMidiAccess I noticed that KmLog outputs |
Hi,
I think it would be more idiomatic for kotlin to use flows for midi inputs instead of interface listeners. At least lambdas should be provided. What do you think?
The text was updated successfully, but these errors were encountered: