mirror of https://github.com/grpc/grpc.git
Servers and stubs were context managers in the Alpha API; they may not need to be in the Beta API but it's easy enough to do, eases migration, and probably helps some use cases. For now the stub is given empty __enter__ and __exit__ methods; we can always come back and implement the actual work of context management in a later change.pull/3279/head
parent
0269c9c2ef
commit
c824eb4e90
2 changed files with 22 additions and 2 deletions
Loading…
Reference in new issue