cancellation/

directory
v0.0.0-...-3ce87dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: Apache-2.0

README

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

Directories

Path Synopsis
Binary client demonstrates how to cancel in-flight RPCs by canceling the context passed to the RPC.
Binary client demonstrates how to cancel in-flight RPCs by canceling the context passed to the RPC.
Binary server demonstrates how to handle canceled contexts when a client cancels an in-flight RPC.
Binary server demonstrates how to handle canceled contexts when a client cancels an in-flight RPC.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL