Skip to content

[Question] design tradeoffs about including ctx in method argument for generated stream handler #768

Answered by emcfarlane
DMwangnima asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @DMwangnima moved this issue to a discussion. The context.Context is passed as the first arg for usability and consistency. It allows interceptors to set the context more easily then stubbing the method on the stream handler.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@DMwangnima
Comment options

Answer selected by DMwangnima
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
3 participants
Converted from issue

This discussion was converted from issue #767 on July 31, 2024 17:10.