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

Make server streaming functions suspending #9

Merged

Conversation

wfhartford
Copy link
Contributor

Currently RPCs which return a single value are suspend functions, it probably makes sense to be consistent, making all service functions suspend. This also allows certain natural implementations other than using the produce function. In my case, my service function is calling to another suspend function which returns a ReceiveChannel, map is then used to transform the results from that channel into gRPC response objects.

@rouzwawi
Copy link
Owner

👍

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.

2 participants