You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if there was a grpc-tools and/or grpc_node_plugin option that would generate client and server code that follows the ES6 Promise and ES7 async/await model.
async function sayHello(call) {
var reply = new messages.HelloReply();
reply.setMessage('Hello ' + call.request.getName());
return [null, reply]
}
Again, just ideas.
This feature would eliminate the need for wrapper code for users wanting to use this pattern. I would love to know if anyone is interested in this feature or planning on adding it. Thanks!
The text was updated successfully, but these errors were encountered:
Would you mind opening this against https://github.com/grpc/grpc-node? Going forward, that's where gRPC Node development will be, so it would be better to have this discussion there.
It would be nice if there was a
grpc-tools
and/orgrpc_node_plugin
option that would generate client and server code that follows the ES6 Promise and ES7 async/await model.For example, instead of:
grpc/examples/node/static_codegen/greeter_client.js
Lines 35 to 37 in 98f8989
We could write:
Or something similar. On the server side, instead of:
grpc/examples/node/static_codegen/greeter_server.js
Lines 27 to 31 in 98f8989
We could write:
Again, just ideas.
This feature would eliminate the need for wrapper code for users wanting to use this pattern. I would love to know if anyone is interested in this feature or planning on adding it. Thanks!
The text was updated successfully, but these errors were encountered: