grpc-go/examples/features/cancellation
eshitachandwani 5fd98530cf
examples: improve package comments (#7658)
2024-10-07 10:28:35 -07:00
..
client examples: improve package comments (#7658) 2024-10-07 10:28:35 -07:00
server examples: improve package comments (#7658) 2024-10-07 10:28:35 -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