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

Use for loop for kotlin Channels in examples #76

Merged
merged 1 commit into from
May 15, 2024

Conversation

vanny96
Copy link
Contributor

@vanny96 vanny96 commented Apr 22, 2024

For someone who's not familiar with Kotlin channels (like me before using them with this library) the current syntax of the examples might look too verbose.
I think using the for loop makes it a bit easier to parse, and seems to be more idiomatic according to Kotlin's docs

Other changes:

  • Used when case for Get replies
  • Changed the lambda paramters in examples/src/main/kotlin/io.zenoh/ZSubThr.kt to make it similar to other examples

Copy link
Member

@DariusIMP DariusIMP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OlivierHecart OlivierHecart merged commit f890fb0 into eclipse-zenoh:main May 15, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

3 participants