jason 075d766964 first | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
client | %!s(int64=3) %!d(string=hai) anos | |
server | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos |
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