tree: d18df14d1b6bb04f5d0a01e5a3ed6d4dac7e6e99 [path history] [tgz]
  1. client/
  2. server/
  3. README.md
examples/features/cancellation/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