grpc-go/examples/features/cancellation
赵延 c44f627fd1
cleanup: replace grpc.WithInsecure with insecure.NewCredentials (#5177)
2022-02-09 11:17:46 -08:00
..
client cleanup: replace grpc.WithInsecure with insecure.NewCredentials (#5177) 2022-02-09 11:17:46 -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