Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithPropagatedContextCancel ¶
func WithPropagatedContextCancel(parent context.Context, cancelCtx context.Context) (context.Context, context.CancelFunc)
WithPropagatedContextCancel returns a copy of parent which is cancelled whenever it is cancelled itself (with the returned cancel func) or cancelCtx is cancelled you need to call cancel func to avoid potential goroutine leak
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.