grpc-go/examples/features/cancellation
Doug Fawley 02cd07d9bb
cmd/protoc-gen-go-grpc: revert to interface-based service registration (#3911)
2020-09-29 15:17:06 -07:00
..
client example: cancellation (#2525) 2018-12-21 15:45:49 -08: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