Documentation ¶
Overview ¶
Package cancelctx provides methods for creating context with injected cancel func for it
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func FromContext(ctx context.Context) context.CancelFunc
FromContext returns a cancel func for the context
func WithCancel ¶
WithCancel creates a context with cancel func and injects it into the context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.