Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCancelFunc ¶
func GetCancelFunc(ctx context.Context) context.CancelFunc
GetCancelFunc returns the CancelFunc if present or a stub function that does nothing
func NewCancelFuncContext ¶
NewCancelFuncContext returns a context with a CancelFunc embedded as a value This allows downstream handlers to cancel themselves and child contexts all the way up the callstack
Types ¶
type CancelFuncContextKey ¶
type CancelFuncContextKey string
Click to show internal directories.
Click to hide internal directories.