grpc-go/examples/features/cancellation
Elisha Silas 09e6fddbcd
Update docs and examples and tests to use NewClient instead of Dial (#7068)
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
Co-authored-by: Doug Fawley <dfawley@google.com>
2024-04-19 10:55:23 -07:00
..
client Update docs and examples and tests to use NewClient instead of Dial (#7068) 2024-04-19 10:55:23 -07:00
server cmd/protoc-gen-go-grpc: revert to interface-based service registration (#3911) 2020-09-29 15:17:06 -07:00
README.md example: cancellation (#2525) 2018-12-21 15:45:49 -08:00

README.md

Cancellation

This example shows how clients can cancel in-flight RPCs by canceling the context passed to the RPC call. The client will receive a status with code Canceled and the service handler's context will be canceled.

go run server/main.go
go run client/main.go