Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

ExecutionContext for bindService and for ServerBuilder #21

Open
waagnermann opened this issue Oct 5, 2023 · 0 comments
Open

ExecutionContext for bindService and for ServerBuilder #21

waagnermann opened this issue Oct 5, 2023 · 0 comments

Comments

@waagnermann
Copy link

Hello!
In this line you pass executionContext only to GreeterGrpc.bindService but not to ServerBuilder which is possible by calling .executor(..) on ServerBuilder.forPort(HelloWorldServer.port) (source).

You did that for a reason or it was just for the sake of example? What is the best practise here: these two thread pools rather be the same or separate?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant