mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-22 13:51:18 +00:00
14 lines
291 B
Markdown
14 lines
291 B
Markdown
|
# 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
|
||
|
```
|